From 6ffb5689ef21d8c86d8673e212410bc1b1896300 Mon Sep 17 00:00:00 2001 From: Joachim Ungar Date: Tue, 17 Sep 2024 08:39:57 +0200 Subject: [PATCH] fix typing issue with retry exceptions --- mapchete/commands/execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapchete/commands/execute.py b/mapchete/commands/execute.py index c354c34b..ca6f3da3 100644 --- a/mapchete/commands/execute.py +++ b/mapchete/commands/execute.py @@ -42,7 +42,7 @@ def execute( executor_getter: AbstractContextManager = Executor, profiling: bool = False, observers: Optional[List[ObserverProtocol]] = None, - retry_on_exception: Tuple[Type[Exception], Type[Exception]] = Exception, + retry_on_exception: Union[Tuple[Type[Exception], ...], Type[Exception]] = Exception, cancel_on_exception: Type[Exception] = JobCancelledError, retries: int = 0, ):