Allow Lemur "start" to use the global config. (#596)

* allowing our runserver to use the config specified by -c

* Maintaining config for gunicorn
This commit is contained in:
kevgliss
2016-12-14 13:23:50 -08:00
committed by GitHub
parent 71ddbb409c
commit 02991c70a9
3 changed files with 10 additions and 5 deletions

View File

@@ -60,11 +60,14 @@ class InstanceManager(object):
results.append(cls())
else:
results.append(cls)
except InvalidConfiguration as e:
current_app.logger.warning("Plugin '{0}' may not work correctly. {1}".format(class_name, e))
except Exception as e:
current_app.logger.exception("Unable to import {0}. Reason: {1}".format(cls_path, e))
continue
self.cache = results
return results