From bc1c791c9a4372f4186904ac7beb76eaf76e56d1 Mon Sep 17 00:00:00 2001 From: Squandor Date: Mon, 2 Jan 2017 13:02:42 +0100 Subject: [PATCH] Added error message if dependencies are not installed --- modules/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/api.py b/modules/api.py index e312f3c..41266e5 100644 --- a/modules/api.py +++ b/modules/api.py @@ -38,8 +38,9 @@ def loadPlugins(): try: plugin[name] = imp.load_source(name, plugin_dir + i) plugin[name].init() - except ImportError: + except ImportError as msg: print "Error occured during loading imports for the plugin " + name + ". Please check whether all dependecies are installed" + print msg sys.exit() return plugin