Modules are obviously not executable, but should not lead to traceback when executed
This commit is contained in:
1 parent
0e5b17be85
commit
df038d8f05
2 files changed
+6
-1
No files matched your search
@@ -108,7 +108,7 @@ class StdlibPlugin(BasePlugin):
|
||||
else:
|
||||
if context.parent_context == self._evaluator.builtins_module:
|
||||
module_name = 'builtins'
|
||||
elif context.parent_context.is_module():
|
||||
elif context.parent_context is not None and context.parent_context.is_module():
|
||||
module_name = context.parent_context.name.string_name
|
||||
else:
|
||||
return callback(context, arguments=arguments)
|
||||
|
||||
Reference in new issue
Block a user