Commit 2aeecc55 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Bugfix exception in renderUlgAction.

When the result was None the len() caused exception.
parent 7626c2b9
......@@ -438,7 +438,10 @@ class ULGCgi:
if(session.isFinished()):
refresh=None
else:
refresh = self.getRefreshInterval(len(result_text))
if(result_text):
refresh = self.getRefreshInterval(len(result_text))
else:
refresh = self.getRefreshInterval()
template = self.loader.load(defaults.index_template_file)
return template.generate(defaults=defaults,
......
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