Skip to content

Commit

Permalink
Update src/ocrd_network/client_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin Baierer <[email protected]>
  • Loading branch information
MehmedGIT and kba authored Aug 12, 2024
1 parent 50794f9 commit cc06fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocrd_network/client_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def _poll_endpoint_status(ps_server_host: str, job_id: str, job_type: str, tries: int, wait: int):
if job_type not in ["workflow", "processor"]:
raise ValueError("Unknown job type, expected 'workflow' or 'processor'")
raise ValueError(f"Unknown job type '{job_type}', expected 'workflow' or 'processor'")
job_state = JobState.unset
while tries > 0:
sleep(wait)
Expand Down

0 comments on commit cc06fc3

Please sign in to comment.