Also, I have not set any interpreter in the shebang line to use. Anyways, Thanks All.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Noufal Ibrahim Sent: Friday, November 25, 2011 5:24 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Weird Try..Except Error <[email protected]> writes: [...] > I checked the comma and spacing and didn't find any problem. Python 3's "except" statement is different[1] You should say except ImportError as err_msg Also, your error message is misleading. Best let the import error propagate. The traceback will be more useful in fixing the problem than the error message which you're printing. [...] Footnotes: [1] http://docs.python.org/release/3.1.3/tutorial/errors.html#handling-exceptions -- ~noufal http://nibrahim.net.in The first condition of immortality is death. -Stanislaw Lec _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
