aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/commands.py b/modules/commands.py
index c60876c3..d98a7e23 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -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)