From fc324fecc47747261e86e0296328763afa786868 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 25 Jun 2023 13:57:24 +0100 Subject: [PATCH] run through black --- vban_cmd/worker.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vban_cmd/worker.py b/vban_cmd/worker.py index 11b9cac..8e779ef 100644 --- a/vban_cmd/worker.py +++ b/vban_cmd/worker.py @@ -33,7 +33,9 @@ class Subscriber(threading.Thread): time.sleep(10) except socket.gaierror as e: self.logger.exception(f"{type(e).__name__}: {e}") - raise VBANCMDConnectionError(f"unable to resolve hostname {self._remote.ip}") from e + raise VBANCMDConnectionError( + f"unable to resolve hostname {self._remote.ip}" + ) from e class Producer(threading.Thread): @@ -73,7 +75,9 @@ class Producer(threading.Thread): return VbanRtPacket(kind=self._remote.kind, data=data) except TimeoutError as e: self.logger.exception(f"{type(e).__name__}: {e}") - raise VBANCMDConnectionError(f"timeout waiting for RtPacket from {self._remote.ip}") from e + raise VBANCMDConnectionError( + f"timeout waiting for RtPacket from {self._remote.ip}" + ) from e def run(self): while self._remote.running: