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: