diff --git a/gourmet/plugin_loader.py b/gourmet/plugin_loader.py index af1b6c5b4..6fdc64c01 100644 --- a/gourmet/plugin_loader.py +++ b/gourmet/plugin_loader.py @@ -133,14 +133,15 @@ def check_if_depended_upon (self, plugin_set): """ depending_on_me = [] for module in self.active_plugin_sets: - ps = self.available_plugin_sets[module] - if ps.dependencies: - try: - if plugin_set.module in ps.dependencies: - depending_on_me.append(ps) - except: - print 'Problem checking dependencies of ',ps,ps.Dependencies - raise + if module in self.available_plugin_sets: + ps = self.available_plugin_sets[module] + if ps.dependencies: + try: + if plugin_set.module in ps.dependencies: + depending_on_me.append(ps) + except: + print 'Problem checking dependencies of ',ps,ps.Dependencies + raise return depending_on_me def activate_plugin_set (self, plugin_set):