make flake8 happy

This commit is contained in:
Yun Xu 2017-10-09 07:58:04 -07:00
parent 770a8fb288
commit c96df86111

View File

@ -94,7 +94,9 @@ class Router:
if ':' in parameter_string: if ':' in parameter_string:
name, pattern = parameter_string.split(':', 1) name, pattern = parameter_string.split(':', 1)
if not name: if not name:
raise ValueError("Invalid parameter syntax: {}".format(parameter_string)) raise ValueError(
"Invalid parameter syntax: {}".format(parameter_string)
)
default = (str, pattern) default = (str, pattern)
# Pull from pre-configured types # Pull from pre-configured types