Commit a2133339 authored by Fred Drake's avatar Fred Drake

Only catch NameError and TypeError when attempting to subclass an

exception (for compatibility with old versions of Python).
parent 6f6a14f8
......@@ -22,7 +22,7 @@ VERBOSE = 2
try:
class Canceled(Exception):
"Exception used to cancel run()."
except:
except (NameError, TypeError):
Canceled = __name__ + ".Canceled"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment