From 8d2413cec87c460be9a7dda284b6b421ae55c601 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Wed, 6 Apr 2011 14:29:12 +0300 Subject: [PATCH] Python 2.5 compatibility --- feedservice/pubsubhubbub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feedservice/pubsubhubbub.py b/feedservice/pubsubhubbub.py index 4fa5101..05ec68e 100644 --- a/feedservice/pubsubhubbub.py +++ b/feedservice/pubsubhubbub.py @@ -165,11 +165,11 @@ class Subscriber(webapp.RequestHandler): try: resp = urllib2.urlopen(huburl, data) - except urllib2.HTTPError as e: + except urllib2.HTTPError, e: msg = 'Could not send subscription to Hub: HTTP Error %d' % e.code logging.warn(msg) raise SubscriptionError(msg) - except Exception as e: + except Exception, e: msg = 'Could not send subscription to Hub: %s' % repr(e) logging.warn(msg) raise SubscriptionError(msg) -- 2.11.4.GIT