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

Food for legal action

Americans sue fast-food chains Apparently, people who eat junk food do so because they have been lulled into…

Fork Off

And so a new Aquarionics Project is formed, in the shape of Geekhouse. This will become the base…

Timestretched

Feeling bloggy, so an update for you. The entry below was written this time yesterday, but didn’t apparently…

Merry Christmas

Okay, I’ve got three Lovefilm trial accounts (two months free trial of the Lovefilm online DVD rental service,…