Skip to content
Browse files

[core] fix for nonavailable plugins

  • Loading branch information...
1 parent 8463e73 commit e69432c27381d0907d8915c656c2c69f26bea695 @Eugeny Eugeny committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 ajenti/app/plugins.py
View
8 ajenti/app/plugins.py
@@ -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.
Something went wrong with that request. Please try again.