Skip to content

Commit 8646c78

Browse files
author
Andrei Neagu
committed
typing
1 parent fc28308 commit 8646c78

File tree

1 file changed

+2
-1
lines changed
  • services/storage/src/simcore_service_storage/modules/celery

1 file changed

+2
-1
lines changed

services/storage/src/simcore_service_storage/modules/celery/errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ def encore_celery_transferrable_error(error: Exception) -> TransferrableCeleryEr
2020

2121
def decode_celery_transferrable_error(error: TransferrableCeleryError) -> Exception:
2222
assert isinstance(error, TransferrableCeleryError) # nosec
23-
return pickle.loads(base64.b64decode(error.args[0])) # noqa: S301
23+
result: Exception = pickle.loads(base64.b64decode(error.args[0])) # noqa: S301
24+
return result

0 commit comments

Comments
 (0)