Skip to content

Commit 58bf130

Browse files
committed
broad error handling to at least provide the process name when something goes wrong
1 parent 7bc6cbf commit 58bf130

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openeo_driver/ProcessGraphDeserializer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,12 @@ def apply_process(process_id: str, args: dict, namespace: Union[str, None], env:
18731873
return process_function(args=ProcessArgs(args, process_id=process_id), env=env)
18741874
except ProcessUnsupportedException as e:
18751875
pass
1876+
except Exception as e:
1877+
if isinstance(e, OpenEOApiException):
1878+
raise e
1879+
else:
1880+
raise OpenEOApiException(f"{process_id}: unexpected error {str(e)} for process arguments {str(args)}")
1881+
18761882

18771883

18781884
if namespace in ["user", None]:

0 commit comments

Comments
 (0)