Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Error: 'AsyncClient' object has no attribute 'handle' #26

Closed
Itz-MrJ opened this issue Oct 1, 2021 · 2 comments
Closed

Attribute Error: 'AsyncClient' object has no attribute 'handle' #26

Itz-MrJ opened this issue Oct 1, 2021 · 2 comments
Assignees
Labels
type: bug Something isn't working

Comments

@Itz-MrJ
Copy link

Itz-MrJ commented Oct 1, 2021

I have this simple code as mentioned below

import valorant

KEY = "token"
client = valorant.AsyncClient(KEY)
async def _main():

  agents = await client.get_characters()

  for agent in agents:
      print(agent.name)
  
  print("done")
valorant.run(_main())

So when I run this simple code I get an error saying Attribute Error: 'AsyncClient' object has no attribute 'handle'

Any idea on what wrong I'm doing?

@frissyn frissyn self-assigned this Oct 1, 2021
@frissyn frissyn added the type: bug Something isn't working label Oct 1, 2021
@frissyn
Copy link
Owner

frissyn commented Oct 1, 2021

I'm taking a look right now @Itz-MrJ, thanks for reporting!

@frissyn
Copy link
Owner

frissyn commented Oct 2, 2021

uhh... looks like I forgot to copy-paste the __init__ function for AsyncClient after the refactoring update 😅 easy fix, should be good to go in the latest update 0.5.1. Thanks for using the package!

@frissyn frissyn closed this as completed Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants