diff --git a/plinth/modules/tor/forms.py b/plinth/modules/tor/forms.py index 00509b0e9..4d0ae7229 100644 --- a/plinth/modules/tor/forms.py +++ b/plinth/modules/tor/forms.py @@ -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')