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
Games
Kajongg
Commits
ad46ed7f
Commit
ad46ed7f
authored
Dec 11, 2017
by
Wolfgang Rohdewald
Browse files
mi18n: replace a print() by raise Exception
parent
eef9f47c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mi18n.py
View file @
ad46ed7f
...
...
@@ -237,7 +237,7 @@ class MLocale:
try
:
localename
=
os
.
environ
[
variable
]
if
localename
is
None
:
print
(
variable
,
'is None'
)
raise
Exception
(
'{} is None'
.
format
(
variable
)
)
except
KeyError
:
continue
else
:
...
...
Write
Preview
Markdown
is supported
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