KeyError: 101
See original GitHub issueHello, 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:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.