From e5f1012e17f0bd2a73222a84282bf1d95667f9ef Mon Sep 17 00:00:00 2001 From: Jeremy Carbaugh Date: Sun, 11 Mar 2012 22:14:24 -0700 Subject: [PATCH] use new as keyword for exceptions --- saucebrush/emitters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saucebrush/emitters.py b/saucebrush/emitters.py index 8460984..a2a1f5e 100644 --- a/saucebrush/emitters.py +++ b/saucebrush/emitters.py @@ -146,7 +146,7 @@ class SqliteEmitter(Emitter): qmarks) try: self._cursor.execute(insert, record.values()) - except sqlite3.IntegrityError, ie: + except sqlite3.IntegrityError as ie: if not self._quiet: raise ie self.reject_record(record, ie.message)