Commit ed1688ff authored by Jimmy's avatar Jimmy
Browse files

fix interactive bug

parent 20890821
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -133,6 +133,8 @@ def posix_shell(chan, channel, log_name=None, width=90, height=40, elementid=Non
'text': json.dumps(['stdout', smart_unicode(x)])})
except socket.timeout:
pass
except UnicodeDecodeError:
channel_layer.send(channel, {'bytes': data})
except Exception, e:
print(type(data))
print(repr(data))
......
Supports Markdown
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