Skip to content

Commit fa9de8c

Browse files
committed
MOD: Live __del__ to catch AttributeError
1 parent 77f7f3b commit fa9de8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

databento/live/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def factory() -> _SessionProtocol:
124124
def __del__(self) -> None:
125125
try:
126126
self.stop()
127-
except ValueError:
127+
except (AttributeError, ValueError):
128128
pass
129129

130130
def __aiter__(self) -> LiveIterator:

0 commit comments

Comments
 (0)