is_valid_cidr raises TypeError if address is invalid
Bug #1584599 reported by
Abhishek Kekane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.utils |
Fix Released
|
Low
|
Abhishek Kekane |
Bug Description
is_valid_cidr() will raise TypeError if invalid input is passed.
E.g.
is_valid_cidr(10)
will raise following error
Traceback (most recent call last):
File "b.py", line 30, in <module>
is_
File "b.py", line 15, in is_valid_cidr
netaddr.
File "/Library/
implicit_
File "/Library/
raise TypeError(
TypeError: unexpected type <type 'int'> for addr arg
Changed in oslo.utils: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in oslo.utils: | |
importance: | Undecided → Low |
To post a comment you must log in.
Fixed it in https:/ /review. openstack. org/#/c/ 319822/