This commit is contained in:
TheTechRobo 2022-04-04 21:29:39 -04:00
parent f270e585e7
commit b6f069010b
1 changed files with 0 additions and 3 deletions

View File

@ -73,9 +73,6 @@ class PlaceScraper:
while True:
try:
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:
await self.regen_token(sesh)
print(raw_data.connection_init % self.token)