Options Exception in script

This commit is contained in:
root 2020-03-07 23:03:06 +05:30
parent e01f044c33
commit 84e4d6d575
1 changed files with 8 additions and 5 deletions

View File

@ -105,11 +105,14 @@ class Script:
# We're already running, so we have to explicitly register and
# configure the addon
ctx.master.addons.invoke_addon(self.ns, "running")
ctx.master.addons.invoke_addon(
self.ns,
"configure",
ctx.options.keys()
)
try:
ctx.master.addons.invoke_addon(
self.ns,
"configure",
ctx.options.keys()
)
except exceptions.OptionsError as e:
script_error_handler(self.fullpath,e,str(e))
async def watcher(self):
last_mtime = 0