Skip to content

Commit cb99129

Browse files
author
Andrei Neagu
committed
mypy
1 parent a36ff26 commit cb99129

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

services/storage/src/simcore_service_storage/api/rpc/_async_jobs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ async def result(
100100
exc_msg = ""
101101
with log_catch(logger=_logger, reraise=False):
102102
# NOTE: recover original error from wrapped error
103-
exc = pickle.loads(base64.b64decode(_result.args[0]))
104-
exc_type = type(exc).__name__
105-
exc_msg = f"{exc}"
103+
exception = pickle.loads(base64.b64decode(_result.args[0]))
104+
exc_type = type(exception).__name__
105+
exc_msg = f"{exception}"
106106

107-
raise JobError(job_id=job_id, exc_type=exc_type, exc_msg=exc_msg, exc=exc)
107+
raise JobError(job_id=job_id, exc_type=exc_type, exc_msg=exc_msg, exc=exception)
108108

109109
return AsyncJobResult(result=_result)
110110

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import Any, Concatenate, Final, ParamSpec, TypeVar, overload
1010

1111
from celery import Celery, Task # type: ignore[import-untyped]
12-
from celery.contrib.abortable import AbortableTask
12+
from celery.contrib.abortable import AbortableTask # type: ignore[import-untyped]
1313
from pydantic import NonNegativeInt
1414

1515
from . import get_event_loop

0 commit comments

Comments
 (0)