From 3a3a6df018c9eba7dc7feb0caac7058eb59e13a4 Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Sat, 29 Oct 2016 17:14:53 -0400 Subject: Return from __cleanup if self.mod.__name__ is None Fixes #7 --- pluginbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1