Aleksandr Borzunov 4 سال پیش
والد
کامیت
a21f6d9eca
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      hivemind/p2p/p2p_daemon.py

+ 4 - 2
hivemind/p2p/p2p_daemon.py

@@ -477,8 +477,10 @@ class P2P:
                 return await self._client.stream_open(peer_id, (handler_name,))
             except ControlFailure:
                 if try_number == n_attempts - 1:
-                    logger.exception(f"Failed to open stream to {peer_id} for handle `{handler_name}`. "
-                                     f"Made {n_attempts} attempts, giving up:")
+                    logger.exception(
+                        f"Failed to open stream to {peer_id} for handle `{handler_name}`. "
+                        f"Made {n_attempts} attempts, giving up:"
+                    )
                     raise
                 logger.warning(f"Failed to open stream to {peer_id} for handle `{handler_name}`:")