Enclose in parentheses:
except (IDontLIkeYouException, YouAreBeingMeanException) as e:
pass
Separating the exception from the variable with a comma will still work in Python 2.6 and 2.7, but is now deprecated; now you should be using as.
2024-02-16 23:30:52
Enclose in parentheses:
except (IDontLIkeYouException, YouAreBeingMeanException) as e:
pass
Separating the exception from the variable with a comma will still work in Python 2.6 and 2.7, but is now deprecated; now you should be using as.