From f10605db754277a509f99ae35538cd066d0143e2 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 1 Mar 2018 09:26:02 -0800 Subject: Removed a Python 2.7 dependency introduced in 2.1.26. --- Mailman/Cgi/subscribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman/Cgi/subscribe.py') diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index 3977268c..aefce493 100755 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -151,7 +151,7 @@ def process_form(mlist, doc, cgidata, lang): if not captcha_response['success']: e_codes = COMMASPACE.join(captcha_response['error-codes']) results.append(_('reCAPTCHA validation failed: %(e_codes)s')) - except urllib2.URLError as e: + except urllib2.URLError, e: e_reason = e.reason results.append(_('reCAPTCHA could not be validated: %(e_reason)s')) -- cgit v1.2.3