Skip to content

Commit 7440d71

Browse files
issue #698 add exception and change documentation
1 parent 8699f3c commit 7440d71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

openeo/rest/connection.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,7 @@ def get_schema_from_process_parameter(
10851085
for parameter in schema.parameters:
10861086
if parameter.name == parameter_id:
10871087
return parameter.schema.schema
1088+
raise OpenEoClientException("Parameter does not exist.")
10881089
raise OpenEoClientException("Process does not exist.")
10891090

10901091
def list_jobs(self, limit: Union[int, None] = None) -> List[dict]:
@@ -2110,10 +2111,10 @@ def search_list_for_dict_key(lst: list, key: str) -> Union[dict, list]:
21102111
"""
21112112
Searches a value of the dict that matches with the key in the list.
21122113
2113-
:param lst: list with dictionaries
2114-
:param parameters: list of the
2114+
:param lst: list with dictionaries.
2115+
:param key: The key for which the value is searched for.
21152116
2116-
:return: value that matches key
2117+
:return: value that matches key.
21172118
"""
21182119
result = None
21192120
for item in lst:

0 commit comments

Comments
 (0)