Handle exception.
This commit is contained in:
parent
7160aa60c3
commit
1797c5fea1
@ -90,15 +90,19 @@ class DummyPythonQtViewStep:
|
|||||||
def widget(self):
|
def widget(self):
|
||||||
return self.main_widget
|
return self.main_widget
|
||||||
|
|
||||||
def retranslate(self, localeName):
|
def retranslate(self, locale_name):
|
||||||
calamares.utils.debug("DummyPythonQt retranslation event "
|
calamares.utils.debug("DummyPythonQt retranslation event "
|
||||||
"for locale name: {}".format(localeName))
|
"for locale name: {}".format(locale_name))
|
||||||
|
|
||||||
|
try:
|
||||||
global _
|
global _
|
||||||
_t = gettext.translation('dummypythonqt',
|
_t = gettext.translation('dummypythonqt',
|
||||||
os.path.join(_path, 'lang'),
|
os.path.join(_path, 'lang'),
|
||||||
languages=[localeName])
|
languages=[locale_name])
|
||||||
_ = _t.lgettext
|
_ = _t.lgettext
|
||||||
|
except OSError as e:
|
||||||
|
calamares.utils.debug(e)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class DummyPQJob:
|
class DummyPQJob:
|
||||||
|
Loading…
Reference in New Issue
Block a user