commit | a2133339ff2e2e4d66b491f9d023976eadfdb8df | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri May 11 19:40:10 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri May 11 19:40:10 2001 +0000 |
tree | 054483a392c8bb8f9175855cf7b41f21f4504072 | |
parent | 6f6a14f888a80d97c846cd777a452c45acfc9fdc [diff] [blame] |
Only catch NameError and TypeError when attempting to subclass an exception (for compatibility with old versions of Python).
diff --git a/Tools/webchecker/wsgui.py b/Tools/webchecker/wsgui.py index 1bf5f73..c301c6f 100755 --- a/Tools/webchecker/wsgui.py +++ b/Tools/webchecker/wsgui.py
@@ -22,7 +22,7 @@ try: class Canceled(Exception): "Exception used to cancel run()." -except: +except (NameError, TypeError): Canceled = __name__ + ".Canceled"