question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, sorry to open the issue, I have some error while trying to fetch profile stats, I’ve no idea to solve it.

Traceback (most recent call last):
  File "main.py", line 369, in get_self_profile
    data = await genshin.get_full_profile(user)
  File "/app/core/genshin.py", line 76, in get_full_profile
    return await self.get_data(user)
  File "/app/core/pool.py", line 30, in wrapper
    return await loop.run_in_executor(_EXECUTOR, partial(func, *args, kwargs))
  File "/app/.heroku/python/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, self.kwargs)
  File "/app/core/genshin.py", line 33, in get_data
    characters = gs.get_characters(d['gi_guid'])
  File "/app/.heroku/python/lib/python3.7/site-packages/genshinstats/genshinstats.py", line 197, in get_characters
    return prettify_characters(data)
  File "/app/.heroku/python/lib/python3.7/site-packages/genshinstats/pretty.py", line 128, in prettify_characters
    } for i in data]
  File "/app/.heroku/python/lib/python3.7/site-packages/genshinstats/pretty.py", line 128, in 
    } for i in data]
KeyError: 101

Please let me know if you need any detail

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thesadrucommented, Jul 22, 2021

Ah sorry, I pushed a quick fix before I noticed you wanted to make a pr.

0reactions
rushkiicommented, Jul 22, 2021

Ah sorry, I pushed a quick fix before I noticed you wanted to make a pr.

It’s alright, glad you fixed it so my bot doesn’t get error when someone trying to get their profile.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python KeyError Exceptions and How to Handle Them
The Python KeyError is a type of LookupError exception and denotes that there was an issue retrieving the key you were looking for....
Read more >
I'm getting Key error in python - Stack Overflow
A KeyError generally means the key doesn't exist. So, are you sure the path key exists? From the official python docs: exception KeyError....
Read more >
How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >
Python KeyError: A Beginner's Guide % - Career Karma
A Python KeyError occurs when you attempt to access an item in a dictionary that does not exist using the indexing syntax. This...
Read more >
What is KeyError in Python? Dictionary and Handling Them
This article will provide you with a detailed and comprehensive knowledge of how to resolve KeyError in Python in Dictionary.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found