mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
modpython: Show (module/__init__.py) in listavailmods
This commit is contained in:
@@ -556,7 +556,8 @@ def get_mod_info_path(path, modname, modinfo):
|
||||
except ImportError:
|
||||
return 0
|
||||
finally:
|
||||
x[0].close()
|
||||
if x[0]:
|
||||
x[0].close()
|
||||
if modname not in pymodule.__dict__:
|
||||
return 0
|
||||
cl = pymodule.__dict__[modname]
|
||||
|
||||
Reference in New Issue
Block a user