Skip to content

Commit

Permalink
Log unusual exceptions when trying to obtain a version
Browse files Browse the repository at this point in the history
Fixes #1262
  • Loading branch information
jbarlow83 committed Apr 7, 2024
1 parent 5fdcb76 commit 9ba4e3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ocrmypdf/subprocess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def get_version(
) from e
except CalledProcessError as e:
if e.returncode != 0:
log.exception(e)
raise MissingDependencyError(
f"Ran program '{program}' but it exited with an error:\n{e.output}"
) from e
Expand Down

0 comments on commit 9ba4e3a

Please sign in to comment.