We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7139962 commit da1ae20Copy full SHA for da1ae20
cads_processing_api_service/exceptions.py
@@ -16,6 +16,7 @@
16
17
import functools
18
import traceback
19
+from typing import Any, Callable
20
21
import attrs
22
import fastapi
@@ -64,9 +65,9 @@ class RateLimitExceeded(ogc_api_processes_fastapi.exceptions.OGCAPIException):
64
65
retry_after: int = 0
66
67
-def exception_logger(f):
68
+def exception_logger(f: Callable[..., Any]) -> Callable[..., Any]:
69
@functools.wraps(f)
- def wrapper(*args, **kwargs):
70
+ def wrapper(*args: Any, **kwargs: Any) -> Any:
71
try:
72
res = f(*args, **kwargs)
73
except requests.exceptions.ReadTimeout:
0 commit comments