Message 343392 - Python tracker

Message343392

Author blueyed
Recipients blueyed, remi.lapeyre
Date 2019-05-24.14:58:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558709938.19.0.822471705401.issue37022@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the feedback.

What do you think of refactoring the common block (also used in other places) into a method?

+        except:
+            exc_info = sys.exc_info()[:2]
+            self.error(traceback.format_exception_only(*exc_info)[-1].strip())

This could/should be done separately probably then, just want your opinion on it.  This would also allow to customize/override it in a single place then (e.g. with pdbpp I am displaying tracebacks for errors, which is done via error() currently then).
History
Date User Action Args
2019-05-24 14:58:58blueyedsetrecipients: + blueyed, remi.lapeyre
2019-05-24 14:58:58blueyedsetmessageid: <1558709938.19.0.822471705401.issue37022@roundup.psfhosted.org>
2019-05-24 14:58:58blueyedlinkissue37022 messages
2019-05-24 14:58:58blueyedcreate