tor: Catch one more possible error with bridge entries

This commit is contained in:
James Valleroy 2016-09-12 21:13:01 -04:00 committed by Sunil Mohan Adapa
parent f52f3f70d2
commit 4162c2df86
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

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')