From 1e4fdfeaceaea5879baadcaa9fe6db0bcc4f325a Mon Sep 17 00:00:00 2001 From: PhilipTrauner Date: Mon, 21 Mar 2016 00:09:58 +0100 Subject: [PATCH] Moved commonb functions to utils --- Shared/Utils.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Shared/Utils.py diff --git a/Shared/Utils.py b/Shared/Utils.py new file mode 100644 index 0000000..01f3f7f --- /dev/null +++ b/Shared/Utils.py @@ -0,0 +1,6 @@ +from traceback import print_exception +from sys import exc_info + +def capture_trace(): + exc_type, exc_value, exc_traceback = exc_info() + print_exception(exc_type, exc_value, exc_traceback) \ No newline at end of file