From 3a985415248ebb10603287214650d4b7b5e8d0b6 Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 19 Jul 2022 11:43:58 +0200 Subject: [PATCH] Improve read method --- src/reportmonster_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reportmonster_client/client.py b/src/reportmonster_client/client.py index 318ebbf..ae787b4 100644 --- a/src/reportmonster_client/client.py +++ b/src/reportmonster_client/client.py @@ -45,7 +45,7 @@ class ReportMonsterClient: return identification async def read(self): - content = await self._socket_reader.readuntil(b"> ") + content = await self._socket_reader.readuntil(b"\n> ") return content.decode().rstrip().rstrip(">").rstrip() async def write(self, message):