Skip to content

Commit d5dfd13

Browse files
committed
Removed unneeded code [skip ci]
1 parent 42767e5 commit d5dfd13

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pgvector/halfvec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, value: list[float] | np.ndarray[tuple[int], np.dtype[np.float
99
dim = len(value)
1010
try:
1111
self._value = struct.pack(f'>HH{dim}e', dim, 0, *value)
12-
except struct.error as e:
12+
except struct.error:
1313
raise ValueError('expected list[float]')
1414
elif isinstance(value, np.ndarray):
1515
if value.ndim != 1:

pgvector/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, value: list[float] | np.ndarray[tuple[int], np.dtype[np.float
99
dim = len(value)
1010
try:
1111
self._value = struct.pack(f'>HH{dim}f', dim, 0, *value)
12-
except struct.error as e:
12+
except struct.error:
1313
raise ValueError('expected list[float]')
1414
elif isinstance(value, np.ndarray):
1515
if value.ndim != 1:

0 commit comments

Comments
 (0)