From 3c8f41b1d2270fca41e6115b215a539faf515950 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 7 Dec 2020 19:11:26 +0100 Subject: [PATCH] Add more verbose error in case of network issues --- pyrogram/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py index 3a2126e9..b0602494 100644 --- a/pyrogram/connection/connection.py +++ b/pyrogram/connection/connection.py @@ -54,7 +54,7 @@ class Connection: log.info("Connecting...") await self.protocol.connect(self.address) except OSError as e: - log.warning(e) # TODO: Remove + log.warning(f"Unable to connect due to network issues: {e}") self.protocol.close() await asyncio.sleep(1) else: