Options Exception in script
This commit is contained in:
parent
e01f044c33
commit
84e4d6d575
|
@ -105,11 +105,14 @@ class Script:
|
||||||
# We're already running, so we have to explicitly register and
|
# We're already running, so we have to explicitly register and
|
||||||
# configure the addon
|
# configure the addon
|
||||||
ctx.master.addons.invoke_addon(self.ns, "running")
|
ctx.master.addons.invoke_addon(self.ns, "running")
|
||||||
ctx.master.addons.invoke_addon(
|
try:
|
||||||
self.ns,
|
ctx.master.addons.invoke_addon(
|
||||||
"configure",
|
self.ns,
|
||||||
ctx.options.keys()
|
"configure",
|
||||||
)
|
ctx.options.keys()
|
||||||
|
)
|
||||||
|
except exceptions.OptionsError as e:
|
||||||
|
script_error_handler(self.fullpath,e,str(e))
|
||||||
|
|
||||||
async def watcher(self):
|
async def watcher(self):
|
||||||
last_mtime = 0
|
last_mtime = 0
|
||||||
|
|
Loading…
Reference in New Issue