Skip to content

Commit

Permalink
review actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Feb 16, 2024
1 parent 8858f4f commit a3a0aeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/iris/fileformats/_nc_load_rules/helpers.py
Expand Up @@ -904,8 +904,9 @@ def get_attr_units(cf_var, attributes):
cf_units.as_unit(attr_units)
except ValueError:
# Using converted unicode message. Can be reverted with Python 3.
msg = "Ignoring netCDF variable {!r} invalid units {!r}".format(
cf_var.cf_name, attr_units
msg = (
f"Ignoring invalid units {attr_units!r} on NetCDF variable "
f"{cf_var.cf_name!r}."
)
warnings.warn(
msg,
Expand Down

0 comments on commit a3a0aeb

Please sign in to comment.