mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
tor: Catch one more possible error with bridge entries
This commit is contained in:
parent
f52f3f70d2
commit
4162c2df86
@ -62,7 +62,7 @@ def bridges_validator(bridges):
|
|||||||
try:
|
try:
|
||||||
ip_info = parts[1].split(':')
|
ip_info = parts[1].split(':')
|
||||||
validate_ipv46_address(ip_info[0])
|
validate_ipv46_address(ip_info[0])
|
||||||
except ValidationError:
|
except (ValidationError, IndexError):
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
BRIDGE_VALIDATION_ERROR_MESSAGE, code='invalid')
|
BRIDGE_VALIDATION_ERROR_MESSAGE, code='invalid')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user