validator shouldn't raise exception
Bug #1357290 reported by
Wei Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Wishlist
|
Unassigned |
Bug Description
In the function neutron.
Changed in neutron: | |
assignee: | nobody → Wei Wang (damon-devops) |
To post a comment you must log in.
It's not clear which way is preferable even though other validators just return messages
For instance, block
if len(address_pairs) > cfg.CONF. max_allowed_ address_ pair: airExhausted(
quota= cfg.CONF. max_allowed_ address_ pair)
raise AllowedAddressP
raising an exception not typically raised from API/request validation layer, so raising it here seems to be appropriate.