Dark Light

Given the following code:

def index():
        try:
                import MySQLdb
        except:
                return "Couldn't import MySQL module"
        return "Yay Workyness"

inside a mod_python instance, is there any reason why it should return “Yay Workyness” and “Couldn’t import MySQL module” in roughly equal amounts? (MySQLdb in this case is a sub directory of the current working directory). Bugs I can cope with, but this inconsistancy is driving me insane…

Related Posts

Scholar and a Gentoo-Man

# cd /camberwick/distro # rm -f debian # wget http://distro.ibiblio.org/pub/Linux/distributions/gentoo/releases/1.4_rc2/x86/x86/livecd/gentoo-basic-x86-1.4_rc2.iso The Debian unstable ISO doesn’t work. The Debian…

That which is seen

Gates redlines Israeli researchers’ "sarcasm meter" (For some obscure reason I can’t post to Aquarionics, but del.icio.us and…