Skip to content

Commit

Permalink
Merge pull request #6914 from kozlovsky/fix/error_message_milliseconds
Browse files Browse the repository at this point in the history
Fix an error message that reports milliseconds as seconds
  • Loading branch information
kozlovsky authored May 27, 2022
2 parents 4c94570 + 287a6aa commit 485ab17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tribler/gui/event_request_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 485ab17

Please sign in to comment.