Commit b3019cac authored by Nathaniel Case's avatar Nathaniel Case

Exception syntax change

parent 49cf0e4a
...@@ -74,7 +74,7 @@ class ReverseConnection(threading.Thread, PyrasiteIPC): ...@@ -74,7 +74,7 @@ class ReverseConnection(threading.Thread, PyrasiteIPC):
running = False running = False
else: else:
running = self.on_command(cmd) running = self.on_command(cmd)
except Exception, e: except Exception as e:
print(str(e)) print(str(e))
running = False running = False
if not running: if not running:
...@@ -94,7 +94,7 @@ class ReversePythonConnection(ReverseConnection): ...@@ -94,7 +94,7 @@ class ReversePythonConnection(ReverseConnection):
try: try:
exec(cmd) exec(cmd)
output = buffer.getvalue() output = buffer.getvalue()
except Exception, e: except Exception as e:
output = str(e) output = str(e)
finally: finally:
sys.stdout = sys.__stdout__ sys.stdout = sys.__stdout__
......
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