mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Adds further testing to cover scripts with non-zero exit codes
This commit is contained in:
parent
c4965580de
commit
057f6016cc
2 changed files with 70 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ class Consumer(LoggingMixin):
|
|||
# Raises exception on non-zero output
|
||||
completed_proc.check_returncode()
|
||||
|
||||
except Exception as e: # pragma: nocover
|
||||
except Exception as e:
|
||||
self._fail(
|
||||
MESSAGE_PRE_CONSUME_SCRIPT_ERROR,
|
||||
f"Error while executing pre-consume script: {e}",
|
||||
|
|
@ -237,7 +237,7 @@ class Consumer(LoggingMixin):
|
|||
# Raises exception on non-zero output
|
||||
completed_proc.check_returncode()
|
||||
|
||||
except Exception as e: # pragma: nocover
|
||||
except Exception as e:
|
||||
self._fail(
|
||||
MESSAGE_POST_CONSUME_SCRIPT_ERROR,
|
||||
f"Error while executing post-consume script: {e}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue