Skip to content

Commit

Permalink
FIX: use dict.get() to retrieve attribute key and return "None" if no…
Browse files Browse the repository at this point in the history
…t available (#200)

* FIX: use dict.get() to retrieve attribute key and return "None" if not available
  • Loading branch information
kmuehlbauer committed Aug 29, 2024
1 parent 1b4a535 commit d532d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Development version (2024-08-23)

FIX: Notebooks are now conforming to ruff's style checks by [@rcjackson](https://github.com/rcjackson), ({pull}`199`) by [@rcjackson](https://github.com/rcjackson).
FIX: use dict.get() to retrieve attribute key and return "None" if not available [@kmuehlbauer](https://github.com/kmuehlbauer), ({pull}`200`) by [@kmuehlbauer](https://github.com/kmuehlbauer)

## 0.6.3 (2024-08-13)

Expand Down
2 changes: 1 addition & 1 deletion xradar/io/backends/odim.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def where(self):
return self._where

def _get_odim_version(self):
version = self._root.attrs["Conventions"]
version = self._root.attrs.get("Conventions", "None")
return version

def _get_site_coords(self):
Expand Down

0 comments on commit d532d24

Please sign in to comment.