Skip to content

Commit

Permalink
Update ocrd/ocrd/processor/helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin Baierer <[email protected]>
  • Loading branch information
joschrew and kba authored Oct 19, 2023
1 parent 2a42695 commit 8519e2f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ocrd/ocrd/processor/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,7 @@ def run_cli(
args = [executable, '--working-dir', workspace.directory]
args += ['--mets', mets_url]
if log_level:
if isinstance(log_level, str):
args += ['--log-level', log_level]
else:
args += ['--log-level', getLevelName(log_level)]
args += ['--log-level', log_level if isinstance(log_level, str) else getLevelName(log_level)]
if page_id:
args += ['--page-id', page_id]
if input_file_grp:
Expand Down

0 comments on commit 8519e2f

Please sign in to comment.