From 3f90f8c1cf3111bc94aa42f73219342638965fd6 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:52:59 -0700 Subject: [PATCH] Ignores coverage of the possible unknown exception during convert call --- src/documents/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/parsers.py b/src/documents/parsers.py index 6664e81de..d781ddb9f 100644 --- a/src/documents/parsers.py +++ b/src/documents/parsers.py @@ -169,7 +169,7 @@ def run_convert( run_subprocess(args, environment, logger) except subprocess.CalledProcessError as e: raise ParseError(f"Convert failed at {args}") from e - except Exception as e: + except Exception as e: # pragma: no cover raise ParseError("Unknown error running convert") from e