From 4162c2df86ebd3f8ec55280c6543d2e9f3c6ab90 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 12 Sep 2016 21:13:01 -0400 Subject: [PATCH] tor: Catch one more possible error with bridge entries --- plinth/modules/tor/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')