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

Sir

Sir? Sir? Are you listening? Mr Merlin? Simon? Simon shook his head. "Yes? Sorry, I was miles away."…

Nightstories

I’ve just woken up. Saved the world from a collective of comedians lead by Noel Coward (Played by…

Broken News

ANN-2002-12-15: America Launches Operation Dessert Storm. Last night, President George W Bush announced his intention to bombard the…
Explanatory note for younger readers: “Ceefax” was an unusably slow information service that closely resembled a shit version…