Skip to content

Commit

Permalink
fix interactive bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy201602 committed Nov 8, 2018
1 parent 4a1a2f5 commit f2c562a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webterminal/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f2c562a

Please sign in to comment.