Merge pull request #25182 from cachedout/pack_long_floats

Try to re-pack long floats as strs
This commit is contained in:
Justin Findlay 2015-07-06 19:06:43 -06:00
commit ddee90ce23

View file

@ -119,7 +119,7 @@ class Serial(object):
'''
try:
return msgpack.dumps(msg)
except OverflowError:
except (OverflowError, msgpack.exceptions.PackValueError):
# msgpack can't handle the very long Python longs for jids
# Convert any very long longs to strings
# We borrow the technique used by TypeError below