Re: traceback.format_exc() returns 'None\n'?!

2017-08-31 Thread Peter Otten
Sean DiZazzo wrote: > Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > Type "help", "copyright", "credits" or "license" for more information. import traceback tb = traceback.format_exc() type(tb) > tb >

traceback.format_exc() returns 'None\n'?!

2017-08-31 Thread Sean DiZazzo
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import traceback >>> tb = traceback.format_exc() >>> type(tb) >>> tb 'None\n' >>> Shouldn't it just