Commit ad46ed7f authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

mi18n: replace a print() by raise Exception

parent eef9f47c
...@@ -237,7 +237,7 @@ class MLocale: ...@@ -237,7 +237,7 @@ class MLocale:
try: try:
localename = os.environ[variable] localename = os.environ[variable]
if localename is None: if localename is None:
print(variable, 'is None') raise Exception('{} is None'.format(variable))
except KeyError: except KeyError:
continue continue
else: else:
......
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