eric-sse 0.7.1__tar.gz → 0.7.2.dev1__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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: eric-sse
3
- Version: 0.7.1
3
+ Version: 0.7.2.dev1
4
4
  Summary: A lightweight message dispatcher based on SSE protocol data transfer objects format
5
5
  License: MIT
6
6
  Keywords: sse,queue,concurrency
@@ -5,7 +5,7 @@ from threading import Lock
5
5
  from typing import AsyncIterable, Any
6
6
 
7
7
  import eric_sse
8
- from eric_sse.exception import InvalidListenerException, NoMessagesException
8
+ from eric_sse.exception import InvalidListenerException, NoMessagesException, InvalidChannelException
9
9
  from eric_sse.message import MessageContract, Message
10
10
  from eric_sse.queue import Queue, AbstractMessageQueueFactory, InMemoryMessageQueueFactory
11
11
 
@@ -175,7 +175,8 @@ class AbstractChannel(ABC):
175
175
  yield self.adapt(message)
176
176
 
177
177
  await asyncio.sleep(self.stream_delay_seconds)
178
-
178
+ except (InvalidListenerException, InvalidChannelException) as e:
179
+ yield self.adapt(Message(msg_type='error', msg_payload=e))
179
180
  except Exception as e:
180
181
  logger.debug(traceback.format_exc())
181
182
  logger.error(e)
@@ -2,7 +2,7 @@
2
2
  name = "eric-sse"
3
3
  description = "A lightweight message dispatcher based on SSE protocol data transfer objects format"
4
4
  requires-python = ">=3.10, <3.12"
5
- version = "0.7.1"
5
+ version = "0.7.2.dev1"
6
6
  authors = [
7
7
  {name = "Luca Stretti", email = "laxertu@gmail.com"}
8
8
  ]
@@ -36,6 +36,8 @@ sphinx = "^8.1.1"
36
36
  sphinx-markdown-builder = "^0.6.7"
37
37
  sphinx-book-theme = "^1.1.3"
38
38
 
39
+
40
+ [tool.setuptools_scm]
39
41
  [project.optional-dependencies]
40
42
  redis-queues = [
41
43
  "eric-redis-queues (>=0.0.4, <0.0.5)"
File without changes
File without changes