mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +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:
|
||||
ip_info = parts[1].split(':')
|
||||
validate_ipv46_address(ip_info[0])
|
||||
except ValidationError:
|
||||
except (ValidationError, IndexError):
|
||||
raise ValidationError(
|
||||
BRIDGE_VALIDATION_ERROR_MESSAGE, code='invalid')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user