Skip to content
Snippets Groups Projects
Commit a0250556 authored by David Baker's avatar David Baker
Browse files

SYWEB-278 Don't allow rules with no rule_id.

parent 255f989c
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ def _rule_spec_from_path(path):
template = path[0]
path = path[1:]
if len(path) == 0:
if len(path) == 0 or len(path[0]) == 0:
raise UnrecognizedRequestError()
rule_id = path[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment