From 946f43d8c4b3cd38db70e9512ebfffb30ba49670 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried Date: Fri, 26 Jan 2024 10:19:47 -0500 Subject: [PATCH 1/2] Update pyproject.toml - use poetry-core MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute `setup.py` since setuptools is not available in the build environment. [end of output] ``` --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 80cf4539..181c2f49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,5 +36,5 @@ stomp = "stomp.__main__:main" [tool.poetry_bumpversion.file."stomp/__init__.py"] [build-system] -requires = ["poetry>=0.12"] -build-backend = "poetry.masonry.api" +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" From 953a0235ec90972692aa8fa853f76b5b768da2a0 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried Date: Sat, 27 Jan 2024 11:13:17 -0500 Subject: [PATCH 2/2] Use ConnectionClosedException instead of CCE in message --- stomp/transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stomp/transport.py b/stomp/transport.py index 6d5ea359..8c1e0b18 100644 --- a/stomp/transport.py +++ b/stomp/transport.py @@ -381,7 +381,7 @@ def __read(self): logging.debug("socket read error", exc_info=logging.verbose) c = b"" if c is None or len(c) == 0: - logging.debug("nothing received, raising CCE") + logging.debug("nothing received, raising ConnectionClosedException") raise exception.ConnectionClosedException() if self.__is_eol(c) and not self.__recvbuf and not fastbuf.tell(): #