i want to write logics at the "disconnect".but i got this error "local variable 'ret' referenced before assignment" ` @sio.on('disconnect') async def disconnect(sid): # await user.logout(sid) await sio.sleep(2) print("disconnect" + sid) `
i want to write logics at the "disconnect".but i got this error "local variable 'ret' referenced before assignment"
@sio.on('disconnect') async def disconnect(sid): # await user.logout(sid) await sio.sleep(2) print("disconnect" + sid)