Skip to content

Commit

Permalink
Check if active_plugin is really there.
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 23, 2014
1 parent 9385324 commit 25e36ac
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gourmet/plugin_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 25e36ac

Please sign in to comment.