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