tor: Catch one more possible error with bridge entries

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2017-01-29 11:20:03 +05:30
1 parent f52f3f70d2
commit 4162c2df86
1 file changed
+1 -1
+1 -1
View File
@@ -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')