X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=gps303%2Fcollector.py;h=00594e1d9f180bd542cdc99823f917f016f67f5d;hb=58fa0277f76d0561aac16d3281a65789570f9dce;hp=f4d960eb228d7cb65c5249b90c7bb394160a438f;hpb=5406967fae63d57acb2d82f5d15a591b5b827af5;p=loctrkd.git diff --git a/gps303/collector.py b/gps303/collector.py index f4d960e..00594e1 100644 --- a/gps303/collector.py +++ b/gps303/collector.py @@ -128,7 +128,9 @@ class Clients: del self.by_imei[clnt.imei] del self.by_fd[fd] - def recv(self, fd: int) -> Optional[List[Tuple[Optional[str], float, Tuple[str, int], bytes]]]: + def recv( + self, fd: int + ) -> Optional[List[Tuple[Optional[str], float, Tuple[str, int], bytes]]]: clnt = self.by_fd[fd] msgs = clnt.recv() if msgs is None: @@ -139,7 +141,11 @@ class Clients: if clnt.imei: self.by_imei[clnt.imei] = clnt else: - log.warning("Login message from %s: %s, but client imei unfilled", peeraddr, packet) + log.warning( + "Login message from %s: %s, but client imei unfilled", + peeraddr, + packet, + ) result.append((clnt.imei, when, peeraddr, packet)) log.debug( "Received from %s (IMEI %s): %s",