Cleanup
This commit is contained in:
parent
f270e585e7
commit
b6f069010b
|
@ -73,9 +73,6 @@ class PlaceScraper:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
response = await websocket.recv()
|
response = await websocket.recv()
|
||||||
if json.loads(response) == {"type": "ka"} and prev == {"type": "ka"}:
|
|
||||||
raise websockets.exceptions.ConnectionClosedOK(None, None)
|
|
||||||
prev = response
|
|
||||||
except websockets.exceptions.ConnectionClosedOK:
|
except websockets.exceptions.ConnectionClosedOK:
|
||||||
await self.regen_token(sesh)
|
await self.regen_token(sesh)
|
||||||
print(raw_data.connection_init % self.token)
|
print(raw_data.connection_init % self.token)
|
||||||
|
|
Loading…
Reference in New Issue