fix broken non protected safedb get
This commit is contained in:
parent
30b73c7f7c
commit
b6bb350b65
@ -30,7 +30,7 @@ class SafeDB:
|
|||||||
"""Wrapper around dbm to optionally encrypt db values."""
|
"""Wrapper around dbm to optionally encrypt db values."""
|
||||||
|
|
||||||
def get(self, key: Union[str, bytes, bytearray]) -> bytes:
|
def get(self, key: Union[str, bytes, bytearray]) -> bytes:
|
||||||
if self.protected:
|
if not self.protected:
|
||||||
return self.db_conn[key]
|
return self.db_conn[key]
|
||||||
return unprotect_string(self.db_conn[key])
|
return unprotect_string(self.db_conn[key])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user