1
0
mirror of https://github.com/obskyr/khinsider.git synced 2025-08-11 15:34:12 +02:00

Preserve tracebacks on Python 2.

This commit is contained in:
obskyr
2017-12-06 08:31:32 +01:00
parent 6fde4be7e0
commit 5c9ee72d49

View File

@@ -477,13 +477,13 @@ if __name__ == '__main__':
except (requests.ConnectionError, requests.Timeout): except (requests.ConnectionError, requests.Timeout):
print("Could not connect to KHInsider.") print("Could not connect to KHInsider.")
print("Make sure you have a working internet connection.") print("Make sure you have a working internet connection.")
except Exception as e: except Exception:
print() print()
print("An unexpected error occurred! " print("An unexpected error occurred! "
"If it isn't too much to ask, please report to " "If it isn't too much to ask, please report to "
"https://github.com/obskyr/khinsider/issues.") "https://github.com/obskyr/khinsider/issues.")
print("Attach the following error message:") print("Attach the following error message:")
print() print()
raise e raise
doIt() doIt()