mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
run through black
This commit is contained in:
parent
449cb9b3c1
commit
fc324fecc4
@ -33,7 +33,9 @@ class Subscriber(threading.Thread):
|
|||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
except socket.gaierror as e:
|
except socket.gaierror as e:
|
||||||
self.logger.exception(f"{type(e).__name__}: {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):
|
class Producer(threading.Thread):
|
||||||
@ -73,7 +75,9 @@ class Producer(threading.Thread):
|
|||||||
return VbanRtPacket(kind=self._remote.kind, data=data)
|
return VbanRtPacket(kind=self._remote.kind, data=data)
|
||||||
except TimeoutError as e:
|
except TimeoutError as e:
|
||||||
self.logger.exception(f"{type(e).__name__}: {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):
|
def run(self):
|
||||||
while self._remote.running:
|
while self._remote.running:
|
||||||
|
Loading…
Reference in New Issue
Block a user