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

Fix crash when no media viewer found #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

micronn
Copy link

@micronn micronn commented Jan 6, 2025

The program should take into account the possibility of no media viewers available.

Without this fix, the program just crashes because it tries to access VWR[0] when VWR is None. This fix leaves VWR as None when no media viewers available, but at least lets the user to read the book.

I assume this will be improved in a future version. So, by now, I leave open_media untouched.

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.

1 participant