pondsocket-client 0.0.2__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pondsocket-client
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: PondSocket Python client — connect to a PondSocket server from Python.
5
5
  Author: eleven-am
6
6
  License: GPL-3.0-or-later
7
7
  Requires-Python: >=3.11
8
- Requires-Dist: pondsocket-common<0.1.0,>=0.0.2
8
+ Requires-Dist: pondsocket-common<0.1.0,>=0.0.3
9
9
  Requires-Dist: websockets>=13
10
10
  Description-Content-Type: text/markdown
11
11
 
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "pondsocket-client"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "PondSocket Python client — connect to a PondSocket server from Python."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
7
7
  license = { text = "GPL-3.0-or-later" }
8
8
  authors = [{ name = "eleven-am" }]
9
9
  dependencies = [
10
- "pondsocket-common>=0.0.2,<0.1.0",
10
+ "pondsocket-common>=0.0.3,<0.1.0",
11
11
  "websockets>=13",
12
12
  ]
13
13
 
@@ -24,7 +24,7 @@ from .types import (
24
24
  Publisher,
25
25
  )
26
26
 
27
- __version__ = "0.0.2"
27
+ __version__ = "0.0.3"
28
28
 
29
29
  __all__ = [
30
30
  "DEFAULT_BASE_RECONNECT_DELAY",
@@ -159,10 +159,11 @@ class Channel:
159
159
  try:
160
160
  return await asyncio.wait_for(fut, timeout=wait_seconds)
161
161
  except TimeoutError as e:
162
- self._pending_responses.pop(request_id, None)
163
162
  raise ResponseTimeoutError(
164
163
  f"no response received for event {event!r} within {wait_seconds}s"
165
164
  ) from e
165
+ finally:
166
+ self._pending_responses.pop(request_id, None)
166
167
 
167
168
  def handle_event(self, event: ChannelEvent) -> None:
168
169
  if self._closed:
@@ -4,4 +4,4 @@ import pondsocket_client
4
4
 
5
5
 
6
6
  def test_package_imports() -> None:
7
- assert pondsocket_client.__version__ == "0.0.2"
7
+ assert pondsocket_client.__version__ == "0.0.3"