Support command hooks not coming from a class instance
This commit is contained in:
parent
dfe5cb0be8
commit
746155fd57
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
buffer = target.buffer
|
||||
|
||||
module_name = hook.function.__self__._name
|
||||
module_name = ""
|
||||
if hasattr(hook.function, "__self__"):
|
||||
module_name = hook.function.__self__._name
|
||||
stdout, stderr = StdOut(module_name, target), StdErr(module_name,
|
||||
target)
|
||||
|
||||
|
|
Loading…
Reference in a new issue