SYWEB-278 Don't allow rules with no rule_id.
parent
255f989c7b
commit
a025055643
|
@ -214,7 +214,7 @@ def _rule_spec_from_path(path):
|
||||||
template = path[0]
|
template = path[0]
|
||||||
path = path[1:]
|
path = path[1:]
|
||||||
|
|
||||||
if len(path) == 0:
|
if len(path) == 0 or len(path[0]) == 0:
|
||||||
raise UnrecognizedRequestError()
|
raise UnrecognizedRequestError()
|
||||||
|
|
||||||
rule_id = path[0]
|
rule_id = path[0]
|
||||||
|
|
Loading…
Reference in New Issue