Skip to content

Commit

Permalink
fix consumer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy201602 committed Nov 8, 2018
1 parent c2e2005 commit 4a1a2f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webterminal/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def receive(self, text=None, bytes=None, **kwargs):
audit_log.save()
self.closessh()
self.close()
except ValueError:
self.queue.publish(self.message.reply_channel.name, smart_unicode(text))
except Exception as e:
logger.error(traceback.print_exc())
self.closessh()
Expand Down

0 comments on commit 4a1a2f5

Please sign in to comment.