mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Add return value assignment in JobScheduler after executing plugin module
This commit is contained in:
parent
26d70c1a54
commit
141b6aac6a
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ class JobScheduler(ApiCaller):
|
|||
start_date = datetime.now().astimezone()
|
||||
try:
|
||||
self.__exec_plugin_module(join(path, "jobs", file), name, PLUGIN_ID=plugin, JOB_NAME=name)
|
||||
ret = 1
|
||||
except SystemExit as e:
|
||||
ret = e.code if isinstance(e.code, int) else 1
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue