Skip to content

Commit

Permalink
Merge pull request #1 from ketankartoza/build-fix
Browse files Browse the repository at this point in the history
Build fix
  • Loading branch information
ketankartoza authored Oct 17, 2024
2 parents 00a6bb2 + 731c553 commit 6fcb929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cplus_plugin/trends_earth/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def download_files(urls, out_folder):
def get_admin_bounds() -> typing.Dict[str, Country]:
raw_admin_bounds = read_json("admin_bounds_key.json.gz", verify=False)
countries_regions = {}
if raw_admin_bounds is None:
return {}
for country_name, raw_country in raw_admin_bounds.items():
countries_regions[country_name] = Country.deserialize(country_name, raw_country)
return countries_regions
Expand Down

0 comments on commit 6fcb929

Please sign in to comment.