summaryrefslogtreecommitdiffstats
path: root/pyload/utils
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-17 20:11:06 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-17 20:11:06 +0200
commitba3686d499f6df9793989486d178cbc55f1ee4bf (patch)
tree90108f9a81005509a99bbec53c6b73b7952e52a0 /pyload/utils
parentPEP-8, Python Zen, refactor and reduce code (part 5 in master module/cli) (diff)
downloadpyload-ba3686d499f6df9793989486d178cbc55f1ee4bf.tar.xz
PEP-8, Python Zen, refactor and reduce code (part 6 in master module/common)
Conflicts: locale/pavement.py module/common/ImportDebugger.py module/common/JsEngine.py module/common/json_layer.py module/common/packagetools.py tests/APIExerciser.py tests/test_api.py tests/test_json.py
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