mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
don't raise an error if the script isn't in the resource
This commit is contained in:
parent
8b7c1681ae
commit
ade5f596f4
@ -363,6 +363,7 @@ class ScriptResource(resource.Resource, component.Component):
|
|||||||
if type not in ("dev", "debug", "normal"):
|
if type not in ("dev", "debug", "normal"):
|
||||||
type = "normal"
|
type = "normal"
|
||||||
|
|
||||||
|
if path in self.__scripts[type]["scripts"]:
|
||||||
del self.__scripts[type]["scripts"][path]
|
del self.__scripts[type]["scripts"][path]
|
||||||
self.__scripts[type]["order"].remove(path)
|
self.__scripts[type]["order"].remove(path)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user