Skip to content

Commit

Permalink
bump version; fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeliza committed Jan 13, 2024
1 parent 24af0b6 commit 5c7ea11
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Datashape = Tuple[int, ...]

spec_version = "2.1"
__version__ = version = "2.6.5"
__version__ = version = "2.6.6"


def version_info():
Expand Down Expand Up @@ -397,13 +397,11 @@ def convert_timestamp(obj: Timestamp) -> ArfTimeStamp:
elif isinstance(obj, numbers.Real):
out[0] = obj
out[1] = (obj - out[0]) * 1e6
elif isinstance(obj, tuple):
else:
try:
out[:2] = obj[:2]
except IndexError as err:
raise TypeError("tuple timestamp needs two elements") from err
else:
raise TypeError(f"unable to convert {obj} to timestamp")
raise TypeError(f"unable to convert {obj} to timestamp") from err
return out


Expand Down

0 comments on commit 5c7ea11

Please sign in to comment.