msg,
)
try:
- lat, lon = qry.lookup(msg.mcc, msg.mnc, msg.gsm_cells, msg.wifi_aps)
+ lat, lon = qry.lookup(
+ msg.mcc, msg.mnc, msg.gsm_cells, msg.wifi_aps
+ )
resp = Resp(
imei=zmsg.imei,
when=zmsg.when, # not the current time, but the original!
log.warning("Lookup for %s resulted in %s", msg, e)
except KeyboardInterrupt:
- pass
+ zsub.close()
+ zpush.close()
+ zctx.destroy() # type: ignore
+ qry.shut()
if __name__.endswith("__main__"):