forked from shaba/openuds
Merge remote-tracking branch 'origin/v2.2'
This commit is contained in:
commit
cc95427e05
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user