Skip to content

Commit

Permalink
resolve #2071: 'bebroadcast' in ValueError msg (#2072)
Browse files Browse the repository at this point in the history
Add space to end of line halfway through error message on line 682 to avoid 'bebroadcast' on string concatenation.
  • Loading branch information
delgadom authored and shoyer committed Apr 21, 2018
1 parent 0935182 commit 99b457c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/variable.py
Expand Up @@ -679,7 +679,7 @@ def __setitem__(self, key, value):
value = as_compatible_data(value)
if value.ndim > len(dims):
raise ValueError(
'shape mismatch: value array of shape %s could not be'
'shape mismatch: value array of shape %s could not be '
'broadcast to indexing result with %s dimensions'
% (value.shape, len(dims)))
if value.ndim == 0:
Expand Down

0 comments on commit 99b457c

Please sign in to comment.