Skip to content

Commit 7179fec

Browse files
committed
Edits
1 parent 4bf7f8b commit 7179fec

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

django_mongodb_backend/cache.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ def loads(self, data):
2323
try:
2424
return int(data)
2525
except (ValueError, TypeError):
26-
if not isinstance(data, bytes):
27-
raise ValueError("Invalid data type for unpickling") from None
2826
return pickle.loads(data) # noqa: S301
2927

3028

0 commit comments

Comments
 (0)