Skip to content

Commit

Permalink
Merge pull request #184 from OCHA-DAP/bugfix/null-provider-names
Browse files Browse the repository at this point in the history
Add check for null provider name
  • Loading branch information
b-j-mills authored Oct 10, 2024
2 parents f306e49 + 7dc3d2e commit a37ffa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.10.8] - 2024-10-10

### Fixed

- Added check for null provider name

## [0.10.7] - 2024-10-10

### Changed
Expand Down
2 changes: 2 additions & 0 deletions src/hapi/pipelines/utilities/provider_admin_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ def get_provider_name(
provider_name = provider_name[admin_code]
if i is not None:
provider_name = provider_name[i]
if provider_name is None:
provider_name = ""
return provider_name

0 comments on commit a37ffa1

Please sign in to comment.