We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a31438 commit b5a60d9Copy full SHA for b5a60d9
pandas/tests/io/test_sql.py
@@ -575,9 +575,12 @@ def drop_table(
575
with conn.cursor() as cur:
576
cur.execute(f'DROP TABLE IF EXISTS "{table_name}"')
577
else:
578
- with conn.begin() as con:
579
- with sql.SQLDatabase(con) as db:
580
- db.drop_table(table_name)
+ try:
+ with conn.begin() as con:
+ with sql.SQLDatabase(con) as db:
581
+ db.drop_table(table_name)
582
+ except sqlalchemy.exc.ProgrammingError:
583
+ pass
584
585
586
def drop_view(
0 commit comments