diff -r d901c36bcfce -r 358d8bed9626 hooks/__init__.py --- a/hooks/__init__.py Thu Feb 14 15:39:23 2013 +0100 +++ b/hooks/__init__.py Thu Feb 14 15:38:25 2013 +0100 @@ -67,7 +67,7 @@ session = repo.internal_session(safe=True) try: source.pull_data(session) - except Exception, exc: + except Exception as exc: session.exception('while trying to update feed %s', source) finally: session.close()