Print the traceback of TCP client Exception
The function now prints the system execution information upon an exception. The last commit requested traceback information, but did not print the information to the console.
This commit is contained in:
@@ -275,7 +275,7 @@ class BaseClient(Thread):
|
||||
# for debugging purposes
|
||||
debug_intent = os.environ.get('PYMODES_DEBUG', None)
|
||||
if debug_intent.lower() == 'true':
|
||||
sys.exc_info()
|
||||
print(sys.exc_info())
|
||||
sys.exit()
|
||||
else:
|
||||
print("Unexpected Error:", e)
|
||||
|
||||
Reference in New Issue
Block a user