Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(554)

Unified Diff: celery_tryton.py

Issue 365760043: celery-tryton: Add python3 support
Patch Set: celery_tyton: Remove new version from CHANGELOG Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG ('k') | setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: celery_tryton.py
===================================================================
--- a/celery_tryton.py
+++ b/celery_tryton.py
@@ -80,7 +80,7 @@
result = super(TrytonTask, self).__call__(*args, **kwargs)
if hasattr(transaction, 'cursor'):
transaction.cursor.commit()
- except DatabaseOperationalError, exc:
+ except DatabaseOperationalError as exc:
if hasattr(transaction, 'cursor'):
transaction.cursor.rollback()
raise self.retry(args=args, kwargs=kwargs, exc=exc,
« no previous file with comments | « CHANGELOG ('k') | setup.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b