mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Try utf-8 and fallback to latin1 for 2/3 collective
datetime objects are latin1 encoded from python2. Not an issue for pure python3 or python2 collectives, but mitigating problems in the mixed environment
This commit is contained in:
parent
bfbde0f7f3
commit
8c4d04a7cd
@ -1028,7 +1028,10 @@ def dispatch_request(nodes, manager, element, configmanager, inputdata,
|
||||
a['name']))
|
||||
return
|
||||
rsp += nrsp
|
||||
rsp = pickle.loads(rsp, **pargs)
|
||||
try:
|
||||
rsp = pickle.loads(rsp, **pargs)
|
||||
except UnicodeDecodeError:
|
||||
rsp = pickle.loads(rsp, encoding='latin1')
|
||||
if isinstance(rsp, Exception):
|
||||
raise rsp
|
||||
yield rsp
|
||||
|
Loading…
Reference in New Issue
Block a user