From c0e7069a57138c69835bc8b36e7272745ebd0b53 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 3 Nov 2018 05:26:59 +0100 Subject: [PATCH] [mod] put import at top of the file --- schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule.py b/schedule.py index be8996d..36482ca 100644 --- a/schedule.py +++ b/schedule.py @@ -1,3 +1,4 @@ +import traceback import asyncio from functools import wraps @@ -14,7 +15,6 @@ def always_relaunch(sleep): except KeyboardInterrupt: return except Exception as e: - import traceback traceback.print_exc() print(f"Error: exception in function '{function.__name__}', relaunch in {sleep} seconds") finally: