Skip to content

Commit

Permalink
Minor change to error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanwp committed Jan 18, 2017
1 parent fa84fc7 commit d13f149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cis/data_io/write_netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def __add_metadata(var, data):
try:
setattr(var, name, value)
except ValueError:
logging.warning("Invalid value ({}) for {} attribute. Attribute not saved to {}.".format(value, name, var))
logging.warning("Invalid value ({}) for {} attribute. "
"Attribute not saved to {}.".format(value, name, var.name))
return var


Expand Down

0 comments on commit d13f149

Please sign in to comment.