Skip to content

Commit

Permalink
Do not suggest very vague fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Nov 27, 2023
1 parent 1f5614d commit 6c24010
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yt/data_objects/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def _get_by_attribute(

if prefer not in ("nearest", "smaller", "larger"):
raise ValueError(
f"side must be 'nearest', 'smaller' or 'larger', got {prefer}"
f"Side must be 'nearest', 'smaller' or 'larger', got {prefer}."
)

# Use a binary search to find the closest value
Expand Down Expand Up @@ -497,7 +497,6 @@ def _get_by_attribute(
else:
raise ValueError(
f"{dsL} and {dsR} have both {attribute}={vL}, cannot perform search."
"Try with another key."
)

if isinstance(value, tuple):
Expand Down

0 comments on commit 6c24010

Please sign in to comment.