Added error message if dependencies are not installed
This commit is contained in:
parent
6a34f11d66
commit
bc1c791c9a
|
|
@ -38,8 +38,9 @@ def loadPlugins():
|
||||||
try:
|
try:
|
||||||
plugin[name] = imp.load_source(name, plugin_dir + i)
|
plugin[name] = imp.load_source(name, plugin_dir + i)
|
||||||
plugin[name].init()
|
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 "Error occured during loading imports for the plugin " + name + ". Please check whether all dependecies are installed"
|
||||||
|
print msg
|
||||||
sys.exit()
|
sys.exit()
|
||||||
return plugin
|
return plugin
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue