mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
tor: Catch one more possible error with bridge entries
This commit is contained in:
1 parent
f52f3f70d2
commit
4162c2df86
1 file changed
+1
-1
@@ -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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user