[mod] put import at top of the file

This commit is contained in:
Laurent Peuch 2018-11-03 05:26:59 +01:00
parent d6c52ce2e4
commit c0e7069a57

View file

@ -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: