Skip to content

Commit 88a5f84

Browse files
apply fixes
1 parent 5964fad commit 88a5f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mindee/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ def load_prediction(
187187
188188
:param product_class: Class of the product to use.
189189
:param local_response: Local response to load.
190-
:return:
190+
:return: A valid prediction.
191191
"""
192192
try:
193-
if local_response.as_dict.get("job"):
193+
if local_response.as_dict["job"]:
194194
return AsyncPredictResponse(product_class, local_response.as_dict)
195195
return PredictResponse(product_class, local_response.as_dict)
196196
except KeyError as exc:

0 commit comments

Comments
 (0)