Avoids exceptions when decoding empty data. Closes #74

This commit is contained in:
Christophe Chauvet 2011-10-21 10:31:02 +02:00 committed by Ask Solem
parent a925312030
commit bed50a304f
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ class SerializerRegistry(object):
except KeyError:
return data
if not data:
return data
return decoder(data)