Skip to content

Commit

Permalink
Fixed assert curr.location is not None (#3105)
Browse files Browse the repository at this point in the history
Fix #3096
  • Loading branch information
nfx authored Oct 30, 2024
1 parent 9977732 commit 0c2dfe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/databricks/labs/ucx/hive_metastore/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def _external_locations(self) -> Iterable[ExternalLocation]:
curr.parent and curr.parent.is_valid() and num_children == 0 and not curr.is_jdbc()
): # one table having the prefix
curr = curr.parent
assert curr.location is not None
if not curr.location:
continue
external_location = ExternalLocation(curr.location, len(list(curr.all_tables())))
external_locations.append(external_location)
continue
Expand Down

0 comments on commit 0c2dfe3

Please sign in to comment.