changeset 5188:8768a95c9a4f

Small fix. Make sure view is defined before trying to find('|') in it.
author John Rouillard <rouilj@ieee.org>
date Sat, 18 Feb 2017 00:58:34 -0500
parents 4955963fa670
children 7aebd892b600
files roundup/cgi/client.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Fri Feb 17 21:41:24 2017 -0500
+++ b/roundup/cgi/client.py	Sat Feb 18 00:58:34 2017 -0500
@@ -1183,7 +1183,7 @@
         # determine if view is oktmpl|errortmpl. If so assign the
         # right one to the view parameter. If we don't have alternate
         # templates, just leave view alone.
-        if (view.find('|') != -1 ):
+        if (view and view.find('|') != -1 ):
             # we have alternate templates, parse them apart.
             (oktmpl, errortmpl) = view.split("|", 2)
             if self._error_message: 

Roundup Issue Tracker: http://roundup-tracker.org/