Permalink
Browse files

#37: unicode freakout (fixed)

  • Loading branch information...
1 parent 84c0811 commit e5aa30f80a16fb6871233c1b04baff3f435297b8 @onethirtyfive onethirtyfive committed Nov 26, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 skadi/engine/user_message.py
@@ -96,6 +96,8 @@ def parse(pbmsg):
try:
_pbmsg = getattr(ns, cls)()
_pbmsg.ParseFromString(pbmsg.msg_data)
+ except UnicodeDecodeError, e:
+ print '! unable to decode protobuf: {}'.format(e)
except AttributeError, e:
err = '! protobuf {0}: open an issue at github.com/onethirtyfive/skadi'
print err.format(cls)

0 comments on commit e5aa30f

Please sign in to comment.