run through black

This commit is contained in:
onyx-and-iris 2023-06-25 13:57:24 +01:00
parent 449cb9b3c1
commit fc324fecc4

View File

@ -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: