Don't instanciate the classes when loading, let the caller take of that
This commit is contained in:
@@ -448,7 +448,7 @@ def load_backend(backend_string):
|
|||||||
module_name, klass = backend_string.rsplit('.', 1)
|
module_name, klass = backend_string.rsplit('.', 1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return getattr(import_module(module_name), klass)()
|
return getattr(import_module(module_name), klass)
|
||||||
except ImportError as exception:
|
except ImportError as exception:
|
||||||
logger.debug('error importing: %s' % backend_string)
|
logger.debug('error importing: %s' % backend_string)
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user