Skip to content

Fix KeyError crash when ipwho.is API omits current_time field#119

Open
Mabroukimohamedyassine wants to merge 1 commit into
HunxByts:mainfrom
Mabroukimohamedyassine:fix/current-time-keyerror
Open

Fix KeyError crash when ipwho.is API omits current_time field#119
Mabroukimohamedyassine wants to merge 1 commit into
HunxByts:mainfrom
Mabroukimohamedyassine:fix/current-time-keyerror

Conversation

@Mabroukimohamedyassine

Copy link
Copy Markdown
  • Use .get() with fallback 'N/A' for current_time
  • Widen exception handlers to catch KeyError alongside ValueError so a single missing API field doesn't crash the entire menu loop

- Use .get() with fallback 'N/A' for current_time
- Widen exception handlers to catch KeyError alongside ValueError
  so a single missing API field doesn't crash the entire menu loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants