summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer McIntyre <zeroSteiner@gmail.com>2016-10-29 17:14:53 -0400
committerSpencer McIntyre <zeroSteiner@gmail.com>2016-10-29 17:14:53 -0400
commit3a3a6df018c9eba7dc7feb0caac7058eb59e13a4 (patch)
tree1401392483c191737538d9ef744e218fad726ff4
parent9b9abd0e883bbdf51436f8d9a265a4d9138604c7 (diff)
downloadpluginbase-3a3a6df018c9eba7dc7feb0caac7058eb59e13a4.tar.gz
Return from __cleanup if self.mod.__name__ is None
Fixes #7
-rw-r--r--pluginbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pluginbase.py b/pluginbase.py
index 4bab952..52c8acd 100644
--- a/pluginbase.py
+++ b/pluginbase.py
@@ -307,7 +307,7 @@ class PluginSource(object):
# The default parameters are necessary because this can be fired
# from the destructor and so late when the interpreter shuts down
# that these functions and modules might be gone.
- if self.mod is None:
+ if self.mod is None or self.mod.__name__ is None:
return
modname = self.mod.__name__
self.mod.__pluginbase_state__ = None