Hi all, Is there a way to convert the pcycopg2 exception DatabaseError subclass to string? Thank you very much for your advise. except (Exception, psycopg2.DatabaseError) as error: query = "insert into exception (event) value (' " + error + " ')" cur.execute(query) print(error) Gary