mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] put import at top of the file
This commit is contained in:
parent
d6c52ce2e4
commit
c0e7069a57
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import traceback
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
@ -14,7 +15,6 @@ def always_relaunch(sleep):
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
import traceback
|
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
print(f"Error: exception in function '{function.__name__}', relaunch in {sleep} seconds")
|
print(f"Error: exception in function '{function.__name__}', relaunch in {sleep} seconds")
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Reference in a new issue