mirror of https://github.com/celery/kombu.git
Avoids exceptions when decoding empty data. Closes #74
This commit is contained in:
parent
a925312030
commit
bed50a304f
|
@ -146,6 +146,9 @@ class SerializerRegistry(object):
|
|||
except KeyError:
|
||||
return data
|
||||
|
||||
if not data:
|
||||
return data
|
||||
|
||||
return decoder(data)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue