Commit 36188dca authored by Michal Čihař's avatar Michal Čihař

Do not fail if _ is not defined

parent c448fc88
......@@ -36,7 +36,7 @@ def ttkit(storefile):
# Workaround for _ created by interactive interpreter and
# later used instead of gettext by ttkit
if not callable(__builtin__.__dict__['_']):
if '_' in __builtin__.__dict__ and not callable(__builtin__.__dict__['_']):
del __builtin__.__dict__['_']
# Add missing mode attribute to Django file wrapper
......
Markdown is supported
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