Skip to content

Commit b475ff0

Browse files
authored
Update fixtures.py
1 parent e95fe0a commit b475ff0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/databricks/labs/ucx/mixins/fixtures.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,8 @@ def remove(table_info: TableInfo):
810810
except RuntimeError as e:
811811
if "Cannot drop a view" in str(e):
812812
sql_backend.execute(f"DROP VIEW IF EXISTS {table_info.full_name}")
813-
if "SCHEMA_NOT_FOUND" in str(e):
813+
elif "SCHEMA_NOT_FOUND" in str(e):
814814
logger.warning("Schema was already dropped while executing the test", exc_info=e)
815-
pass
816815
else:
817816
raise e
818817

0 commit comments

Comments
 (0)