Merge remote-tracking branch 'origin/v2.2'

This commit is contained in:
Adolfo Gómez García 2018-03-26 12:34:24 +02:00
commit cc95427e05

View File

@ -104,7 +104,7 @@ class Storage(object):
def getPickleByAttr1(self, attr1):
try:
return pickle.loads(encoders.decode(dbStorage.objects.get(owner=self._owner, attr1=attr1).data, 'base64')) # @UndefinedVariable
return pickle.loads(encoders.decode(dbStorage.objects.filter(owner=self._owner, attr1=attr1)[0].data, 'base64')) # @UndefinedVariable
except Exception:
return None