From 0fe2d2ed301fab9648892145f663f899b1be1001 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Tue, 28 Jan 2020 18:17:08 +0100 Subject: [PATCH] hopefully fixes regex matching of stderr --- cronwrapper/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cronwrapper/__init__.py b/cronwrapper/__init__.py index 629c3d8..f77d654 100755 --- a/cronwrapper/__init__.py +++ b/cronwrapper/__init__.py @@ -3,6 +3,7 @@ import argparse import datetime import os +import re import shutil import subprocess import sys @@ -194,7 +195,7 @@ def main(): if res in args.success_exit_codes: # Possible success, check error output - re_checks = [re.compile(r) for r in args.ignore_error] + re_checks = [re.compile(r) for r in args.err_re] ok = True with open(errfile, 'r') as f: for line in f: