use new as keyword for exceptions

This commit is contained in:
Jeremy Carbaugh 2012-03-11 22:14:24 -07:00
parent 1cfc4404cf
commit e5f1012e17

View File

@ -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)