-
Notifications
You must be signed in to change notification settings - Fork 5
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
[BUG] KeyError: 'profile_def' on search #29
Comments
It looks like the JSON no longer has those values
Should I put them to None if not present? |
I was thinking about doing if "profile_dev" in input_game_element:
current_entry.profile_dev = input_game_element["profile_dev"]
if "profile_platform" in input_game_element:
current_entry.profile_platforms = input_game_element["profile_platform"].split(", ")
if "release_world" in input_game_element:
current_entry.release_world = input_game_element["release_world"] So if they ever appear again they're gonna be back there, otherwise they are None |
Seems reasonable to me, though wouldn't it be a bit more Pythonic to just
I might be wrong, I've been pretty much out of the software game for a few years. |
Yes you're right, I'll do it this way, sorry I don't use Python very much |
Fixed on version 1.0.8 |
Describe the bug
When searching by name or by ID,
KeyError: 'profile_dev'
occursTo Reproduce
HLTB API Version
v1.0.7
The text was updated successfully, but these errors were encountered: