Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
877fe292
Commit
877fe292
authored
Aug 31, 2015
by
Médéric Boquien
Browse files
Do not use a variable that does not exist. And correct the grammar.
parent
f66860dc
Changes
1
Show whitespace changes
Inline
Side-by-side
pcigale/creation_modules/__init__.py
View file @
877fe292
...
...
@@ -155,7 +155,7 @@ def get_module(name, **kwargs):
Parameters
----------
module_
name: string
name: string
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
used to determine the module to load (e.g. 'dl2014.1' will return
...
...
@@ -170,5 +170,5 @@ def get_module(name, **kwargs):
module
=
import_module
(
"."
+
name
,
'pcigale.creation_modules'
)
return
module
.
Module
(
name
=
name
,
**
kwargs
)
except
ImportError
:
print
(
'Module '
+
module_
name
+
' does not exist
s
!'
)
print
(
'Module '
+
name
+
' does not exist!'
)
raise
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment