Skip to content

Commit

Permalink
[core] fix for nonavailable plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Oct 17, 2010
1 parent 8463e73 commit e69432c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ajenti/app/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,9 @@ def loader(path, log):
if retries[c] > 10:
log.error('Circular dependency between %s and %s. Aborting' % (c,e.name))
sys.exit(1)
queue.remove(e.name)
queue.append(e.name)
try:
queue.remove(e.name)
queue.append(e.name)
except:
log.error('Plugin %s requires %s, which is not available. Aborting' % (c,e.name))
sys.exit(1)

0 comments on commit e69432c

Please sign in to comment.