Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
yunstanford committed Oct 13, 2018
1 parent 1bdf9ca commit f15a7fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sanic/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def add_parameter(match):
name, _type, pattern = self.parse_parameter_string(name)

if name in parameter_names:
raise ParameterNameConflicts("Multiple parameter named <{name}> in route uri {uri}".format(name=name, uri=uri))
raise ParameterNameConflicts(
"Multiple parameter named <{name}> "
"in route uri {uri}".format(name=name, uri=uri))
parameter_names.add(name)

parameter = Parameter(
Expand Down

0 comments on commit f15a7fb

Please sign in to comment.