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):
exec(cmd)
output = buffer.getvalue()
except:
exc_type, exc_value, exc_tb = sys.exc_info()
output = exc_value.message
output = traceback.format_exc()
sys.stdout = sys.__stdout__
sys.stderr = sys.__stderr__
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