From 1d5074dda0254e355a8f90b7cf9191e2aa5c7dca Mon Sep 17 00:00:00 2001 From: Ian Good Date: Sun, 14 Apr 2024 10:35:14 -0400 Subject: [PATCH] Fix warning logs on closed connection writes --- .github/workflows/python-check.yml | 2 +- pymap/__about__.py | 2 +- pymap/imap/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-check.yml b/.github/workflows/python-check.yml index bb863392..030977d1 100644 --- a/.github/workflows/python-check.yml +++ b/.github/workflows/python-check.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ubuntu-latest, macos-latest, windows-latest] + platform: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.platform }} diff --git a/pymap/__about__.py b/pymap/__about__.py index 609a3607..6f2ce80e 100644 --- a/pymap/__about__.py +++ b/pymap/__about__.py @@ -1,2 +1,2 @@ #: The package version string. -__version__ = '0.36.6' +__version__ = '0.36.7' diff --git a/pymap/imap/__init__.py b/pymap/imap/__init__.py index 8e8e6193..d041d0eb 100644 --- a/pymap/imap/__init__.py +++ b/pymap/imap/__init__.py @@ -256,8 +256,8 @@ async def read_idle_done(self, cmd: IdleCommand) -> bool: return ok async def write_response(self, resp: Response) -> None: - await resp.async_write(self.writer) try: + await resp.async_write(self.writer) await self.writer.drain() except ConnectionError: pass