From fd942a8d7e8bc1bcc31ba6f06bae4eaebcae7de3 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Fri, 2 Aug 2019 07:29:54 +0200 Subject: [PATCH] another attempt to fix intermediate failure --- cronwrapper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronwrapper/__init__.py b/cronwrapper/__init__.py index 254d1a0..629c3d8 100755 --- a/cronwrapper/__init__.py +++ b/cronwrapper/__init__.py @@ -216,7 +216,7 @@ def main(): # Failure if previous_runs: # Not the first failure... - oldest = datetime.datetime.fromtimestamp(min(previous_runs.values())) + oldest = min(previous_runs.values()) delta = datetime.timedelta(seconds=args.warn_interval) diff = now-oldest if diff > delta: