Try to re-pack long ints as strs

Refs test failures in integration.states.file.FileTest.test_managed_contents
This commit is contained in:
Mike Place 2015-07-06 10:11:55 -06:00
parent 09602808a0
commit a192ecfd74

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