Skip to content
Snippets Groups Projects
Verified Commit 3906c65d authored by David Hoese's avatar David Hoese
Browse files

Fix psycopg2 bad exception name reference

parent b5f8e4d5
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ try:
with conn.cursor() as cur:
cur.execute(sql.SQL(query_str).format(sql.Identifier(table_name)))
times = cur.fetchall()
except psycopg2.errors.DataBaseError:
except psycopg2.errors.DatabaseError:
print("""Status: 500 Database Error
Content-type: text/plain
Access-Control-Allow-Origin: *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment