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:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user