summaryrefslogtreecommitdiffstats
path: root/pyload/utils
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/utils')
-rw-r--r--pyload/utils/pylgettext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/utils/pylgettext.py b/pyload/utils/pylgettext.py
index 1f31cf42d..86cfc586a 100644
--- a/pyload/utils/pylgettext.py
+++ b/pyload/utils/pylgettext.py
@@ -48,7 +48,8 @@ def find(domain, localedir=None, languages=None, all=False):
results = filter(lambda x: x is not None, results)
if len(results) == 0:
return None
- return results[0]
+ else:
+ return results[0]
else:
return results