From 5c9ee72d498019c958e1295dfbb1f08be17884fc Mon Sep 17 00:00:00 2001 From: obskyr Date: Wed, 6 Dec 2017 08:31:32 +0100 Subject: [PATCH] Preserve tracebacks on Python 2. --- khinsider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/khinsider.py b/khinsider.py index 06a5083..09ff18b 100644 --- a/khinsider.py +++ b/khinsider.py @@ -477,13 +477,13 @@ if __name__ == '__main__': except (requests.ConnectionError, requests.Timeout): print("Could not connect to KHInsider.") print("Make sure you have a working internet connection.") - except Exception as e: + except Exception: print() print("An unexpected error occurred! " "If it isn't too much to ask, please report to " "https://github.com/obskyr/khinsider/issues.") print("Attach the following error message:") print() - raise e + raise doIt()