Skip to content

Commit aad1de0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6e14b05 commit aad1de0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cachier/cores/redis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ def _loading_pickle(raw_value) -> Any:
8383
# try to recover by encoding; prefer utf-8 but fall
8484
# back to latin-1 in case raw binary was coerced to str
8585
try:
86-
return pickle.loads(raw_value.encode("utf-8"))
86+
return pickle.loads(raw_value.encode("utf-8"))
8787
except Exception:
88-
return pickle.loads(raw_value.encode("latin-1"))
88+
return pickle.loads(raw_value.encode("latin-1"))
8989
else:
9090
# unexpected type; attempt pickle.loads directly
9191
try:
92-
return pickle.loads(raw_value)
92+
return pickle.loads(raw_value)
9393
except Exception:
9494
return None
9595
except Exception as exc:

0 commit comments

Comments
 (0)