mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Owner: Prevent use of uninitialized variable.
(pulled from Limnoria)
This commit is contained in:
parent
bc0d16a4e1
commit
0b36a29977
@ -456,7 +456,7 @@ class Owner(callbacks.Plugin):
|
|||||||
x = module.reload()
|
x = module.reload()
|
||||||
try:
|
try:
|
||||||
module = plugin.loadPluginModule(name)
|
module = plugin.loadPluginModule(name)
|
||||||
if hasattr(module, 'reload'):
|
if hasattr(module, 'reload') and 'x' in locals():
|
||||||
module.reload(x)
|
module.reload(x)
|
||||||
for callback in callbacks:
|
for callback in callbacks:
|
||||||
callback.die()
|
callback.die()
|
||||||
|
Loading…
Reference in New Issue
Block a user