diff options
Diffstat (limited to 'Lib/traceback.py')
| -rw-r--r-- | Lib/traceback.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index abda4220b5..f5c4b29e71 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -158,7 +158,7 @@ def format_exception_only(etype, value):      """      list = []      if (type(etype) == types.ClassType -        or (isinstance(etype, type) and issubclass(etype, Exception))): +        or (isinstance(etype, type) and issubclass(etype, BaseException))):          stype = etype.__name__      else:          stype = etype  | 
