diff options
author | Spencer McIntyre <zeroSteiner@gmail.com> | 2016-10-29 17:14:53 -0400 |
---|---|---|
committer | Spencer McIntyre <zeroSteiner@gmail.com> | 2016-10-29 17:14:53 -0400 |
commit | 3a3a6df018c9eba7dc7feb0caac7058eb59e13a4 (patch) | |
tree | 1401392483c191737538d9ef744e218fad726ff4 | |
parent | 9b9abd0e883bbdf51436f8d9a265a4d9138604c7 (diff) | |
download | pluginbase-3a3a6df018c9eba7dc7feb0caac7058eb59e13a4.tar.gz |
Return from __cleanup if self.mod.__name__ is None
Fixes #7
-rw-r--r-- | pluginbase.py | 2 |
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 |