Skip to content

Commit

Permalink
🦺 Remove redundant validation code for area datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
i-be-snek committed Oct 30, 2024
1 parent c083f74 commit df59717
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Database/scr/normalize_locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ def normalize_locations(
is_country and in_country
), f"An area cannot be a country (is_country={is_country}) and in a country (in_country={in_country}) simultaneously"

# if area is None, replace by country name
area = in_country if not area and in_country else area
assert isinstance(area, str), f"Area is {area}; in_country: {in_country}"

except BaseException as err:
self.logger.error(err)
return (None, None, None)
Expand Down

0 comments on commit df59717

Please sign in to comment.