From 287a6aaee58c5b5a97642982ecec82c82a63bacd Mon Sep 17 00:00:00 2001 From: Alexander Kozlovsky Date: Mon, 23 May 2022 13:28:34 +0200 Subject: [PATCH] Fix an error message that reports milliseconds as seconds --- src/tribler/gui/event_request_manager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tribler/gui/event_request_manager.py b/src/tribler/gui/event_request_manager.py index 96b0549a73c..78bf4e347d3 100644 --- a/src/tribler/gui/event_request_manager.py +++ b/src/tribler/gui/event_request_manager.py @@ -102,10 +102,8 @@ def on_error(self, error, reschedule_on_err): raise CoreConnectionError(f"Error {error} while trying to connect to Tribler Core") if self.remaining_connection_attempts <= 0: - raise CoreConnectTimeoutError( - f"Could not connect with the Tribler Core \ - within {RECONNECT_INTERVAL_MS*CORE_CONNECTION_ATTEMPTS_LIMIT} seconds" - ) + raise CoreConnectTimeoutError("Could not connect with the Tribler Core within " + f"{RECONNECT_INTERVAL_MS*CORE_CONNECTION_ATTEMPTS_LIMIT//1000} seconds") self.remaining_connection_attempts -= 1