Skip to content

Commit

Permalink
Merge #204
Browse files Browse the repository at this point in the history
204: Fix CI r=AstraLuma a=nbraud



Co-authored-by: nicoo <nicoo@mur.at>
  • Loading branch information
bors[bot] and nbraud authored Oct 23, 2021
2 parents 31f9744 + 8bf8696 commit 3900b8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ upload_task:
FreeBSD_task:
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
freebsd_instance:
image_family: freebsd-12-1
image_family: freebsd-13-0
env:
matrix:
- PYTHON: 3.6
Expand Down
5 changes: 3 additions & 2 deletions ppb_vector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ def __new__(cls, *args, **kwargs):
# https://docs.python.org/3/library/dataclasses.html#frozen-instances
object.__setattr__(self, 'x', float(x))
except ValueError:
raise TypeError(f"{type(x).__name__} object not convertable to float")
# TODO(nicoo): Decide whether this should rethrow
raise TypeError(f"{type(x).__name__} object not convertable to float") # noqa: B904

try:
object.__setattr__(self, 'y', float(y))
except ValueError:
raise TypeError(f"{type(y).__name__} object not convertable to float")
raise TypeError(f"{type(y).__name__} object not convertable to float") # noqa: B904

return self

Expand Down

0 comments on commit 3900b8c

Please sign in to comment.