Replies: 1 comment
-
|
Thanks for this. I'm hoping to get some time soon to update the book's GitHUB code with this and other recent code updates/fixes. With any luck this will happen tomorrow. Regards. --Paul. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Paul,
while working through WorldRecords.ipynb (Chapter 9), I ran into a KeyError when an event wasn’t present for every course. The lookup is built from the webapp filename, but not all course tables contain every event, so records[course][lookup] failed.
I’ve updated the loop to guard missing events and print N/A instead of raising:
This keeps the notebook running smoothly while still showing which courses don’t have a record for the requested event.
Happy to open a PR if that’s helpful.
Regards
Adrian
Beta Was this translation helpful? Give feedback.
All reactions