diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-28 20:40:37 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-28 20:40:37 (GMT) |
commit | 0d6760b1944fae7326ceb5aa181bf78109d20fcf (patch) | |
tree | 2559ca54c45d5b87ba383e6d73203725e7af09e0 /sugar/activity | |
parent | 03ef9c034e1f4bd1aed4f4bf56ec5b587101d242 (diff) |
Do not fail is lang is not set
Diffstat (limited to 'sugar/activity')
-rw-r--r-- | sugar/activity/bundle.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/activity/bundle.py b/sugar/activity/bundle.py index e4f09d3..feded65 100644 --- a/sugar/activity/bundle.py +++ b/sugar/activity/bundle.py @@ -155,7 +155,10 @@ class Bundle: def _get_linfo_file(self): linfo_file = None + lang = locale.getdefaultlocale()[0] + if not lang: + return None if os.path.isdir(self._path): linfo_path = os.path.join(self.get_locale_path(), lang, 'activity.linfo') |