fix broken non protected safedb get

This commit is contained in:
Kevin Froman 2021-01-17 19:44:24 +00:00
parent e41e3fd01d
commit 2ffc8c637e

View File

@ -30,7 +30,7 @@ class SafeDB:
"""Wrapper around dbm to optionally encrypt db values."""
def get(self, key: Union[str, bytes, bytearray]) -> bytes:
if self.protected:
if not self.protected:
return self.db_conn[key]
return unprotect_string(self.db_conn[key])