Commit a65049aa authored by Luke Macken's avatar Luke Macken

Fix our reverse python shell error handling

parent 17f24b36
...@@ -104,8 +104,7 @@ class ReversePythonConnection(ReverseConnection): ...@@ -104,8 +104,7 @@ class ReversePythonConnection(ReverseConnection):
exec(cmd) exec(cmd)
output = buffer.getvalue() output = buffer.getvalue()
except: except:
exc_type, exc_value, exc_tb = sys.exc_info() output = traceback.format_exc()
output = exc_value.message
sys.stdout = sys.__stdout__ sys.stdout = sys.__stdout__
sys.stderr = sys.__stderr__ sys.stderr = sys.__stderr__
buffer.close() buffer.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment