mirror of
https://github.com/obskyr/khinsider.git
synced 2025-01-17 12:38:30 +01:00
Preserve tracebacks on Python 2.
This commit is contained in:
parent
6fde4be7e0
commit
5c9ee72d49
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user