Skip to content

Commit 7b0a64c

Browse files
authored
Merge branch 'main' into add-is-eventql-true-precondition
2 parents e8ac2f3 + 2d642df commit 7b0a64c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

eventsourcingdb/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ async def run_eventql_query(self, query: str) -> AsyncGenerator[Any]:
187187
async for raw_message in response.body:
188188
message = parse_raw_message(raw_message)
189189

190+
if is_heartbeat(message):
191+
continue
192+
190193
if is_stream_error(message):
191194
error_message = message.get('payload', {}).get('error', 'Unknown error')
192195
raise ServerError(f"{error_message}.")
@@ -329,4 +332,4 @@ async def read_event_types(self) -> AsyncGenerator[EventType]:
329332
raise ServerError(
330333
f'Failed to read event types, an unexpected '
331334
f'stream item was received \'{message}\'.'
332-
)
335+
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "eventsourcingdb"
3-
version = "1.3.2"
3+
version = "1.3.3"
44
description = "The official Python client SDK for EventSourcingDB."
55
authors = [{ name = "the native web GmbH", email = "[email protected]" }]
66
requires-python = ">=3.11, <=3.13"

0 commit comments

Comments
 (0)