You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because ErrorString is not an Exception, it is a function
>>> from xml.parsers.expat import ErrorString
>>> type(ErrorString)
<class 'builtin_function_or_method'>
>>> try:
... raise Exception()
... except ErrorString:
... pass
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
Exception
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
TypeError: catching classes that do not inherit from BaseException is not allowed
>>> ErrorString(1)
'out of memory'
The text was updated successfully, but these errors were encountered:
you cannot except ErrorString like this:
robozilla/robozilla/bz.py
Line 188 in 49f9a3f
because ErrorString is not an Exception, it is a function
The text was updated successfully, but these errors were encountered: