Comment 2 for bug 83008

Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks, applied. This didn't come up in testing because in fact it's limited to cases where an exception actually gets thrown (e.g. popularity-contest isn't installed in the live session or in the target system). As a demonstration:

$ python
Python 2.5 (release25-maint, Jan 15 2007, 19:47:09)
[GCC 4.1.2 20070106 (prerelease) (Ubuntu 4.1.1-21ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> try:
... pass
... except NonexistentError:
... pass
...
>>> try:
... raise Exception
... except NonexistentError:
... pass
...
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
NameError: name 'NonexistentError' is not defined
>>>