This is old style. use ``except peewee.DatabaseError as e``