Skip to content
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

Issue #237: unhandled exception for missing "rights" key #239

Merged
merged 4 commits into from
Nov 23, 2020
Merged

Issue #237: unhandled exception for missing "rights" key #239

merged 4 commits into from
Nov 23, 2020

Conversation

nhonaitran
Copy link

Reported issue #237 is caused by unhandled exception thrown for missing key "rights" in the info and book_info dictionaries when fetching book info.

This PR addresses above issue by replacing "rights" key lookup to using built-in get method with default value if the key is missing in the dictionary.

Similar replacements applied to other keys as well to prevent similar missing key exception.

@Bomberdash
Copy link

Also stopped working with the output "right"
Please explain what needs to be done specifically and in which file?

@avineshwar
Copy link
Contributor

Please refer to this: https://github.com/lorenzodifuccia/safaribooks/pull/245/commits

Or, you won't be able to generate an "EPUB".

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.

None yet

4 participants