| 1 | initial version |
Well, you figured it out. Here is a reference - the Python tutorial section on this.
An except clause may name multiple exceptions as a parenthesized tuple, for example:
I think your syntax may have wanted to assign the error message to the variable TypeError... or something like that.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.