Should be except Exception, as you don't want to catch <samp>KeyboardInterrupt</samp> or <samp>SystemExit</samp>