Commit e01a236c authored by Matias Guijarro's avatar Matias Guijarro
Browse files

config/plugins/utils.py: try looking for class in module with name or name as a 'title'

parent 9c9ddad5
Pipeline #1485 passed with stages
in 7 minutes and 6 seconds
......@@ -21,7 +21,10 @@ def find_class(cfg_node,base_path='bliss.controllers'):
module_name = '%s.%s' % (base_path,klass_name.lower())
module = __import__(module_name, fromlist=[''])
klass = getattr(module, klass_name)
try:
klass = getattr(module, klass_name)
except AttributeError:
klass = getattr(module, klass_name.title())
Please register or sign in to reply
return klass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment