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:
Alexander Hirsch
2019-06-03 17:23:26 -07:00
parent 312c77629b
commit 0ea4969393

View File

@@ -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)