Skip to content

Commit ab4d515

Browse files
committed
Small fix. Make sure view is defined before trying to find('|') in it.
1 parent 7ffaeb1 commit ab4d515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ def selectTemplate(self, name, view):
11831183
# determine if view is oktmpl|errortmpl. If so assign the
11841184
# right one to the view parameter. If we don't have alternate
11851185
# templates, just leave view alone.
1186-
if (view.find('|') != -1 ):
1186+
if (view and view.find('|') != -1 ):
11871187
# we have alternate templates, parse them apart.
11881188
(oktmpl, errortmpl) = view.split("|", 2)
11891189
if self._error_message:

0 commit comments

Comments
 (0)