Commit 877fe292 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Do not use a variable that does not exist. And correct the grammar.

parent f66860dc
...@@ -155,7 +155,7 @@ def get_module(name, **kwargs): ...@@ -155,7 +155,7 @@ def get_module(name, **kwargs):
Parameters Parameters
---------- ----------
module_name: string name: string
The name of the module we want to get the class. This name can be The name of the module we want to get the class. This name can be
prefixed by anything using a dot, then the part before the dot is prefixed by anything using a dot, then the part before the dot is
used to determine the module to load (e.g. 'dl2014.1' will return used to determine the module to load (e.g. 'dl2014.1' will return
...@@ -170,5 +170,5 @@ def get_module(name, **kwargs): ...@@ -170,5 +170,5 @@ def get_module(name, **kwargs):
module = import_module("." + name, 'pcigale.creation_modules') module = import_module("." + name, 'pcigale.creation_modules')
return module.Module(name=name, **kwargs) return module.Module(name=name, **kwargs)
except ImportError: except ImportError:
print('Module ' + module_name + ' does not exists!') print('Module ' + name + ' does not exist!')
raise raise
Markdown is supported
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