use new as keyword for exceptions
This commit is contained in:
parent
1cfc4404cf
commit
e5f1012e17
@ -146,7 +146,7 @@ class SqliteEmitter(Emitter):
|
|||||||
qmarks)
|
qmarks)
|
||||||
try:
|
try:
|
||||||
self._cursor.execute(insert, record.values())
|
self._cursor.execute(insert, record.values())
|
||||||
except sqlite3.IntegrityError, ie:
|
except sqlite3.IntegrityError as ie:
|
||||||
if not self._quiet:
|
if not self._quiet:
|
||||||
raise ie
|
raise ie
|
||||||
self.reject_record(record, ie.message)
|
self.reject_record(record, ie.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user