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

update_database.py occasionally fails #1

Closed
DanielRJohnson opened this issue Jun 18, 2024 · 0 comments · Fixed by #6
Closed

update_database.py occasionally fails #1

DanielRJohnson opened this issue Jun 18, 2024 · 0 comments · Fixed by #6
Labels
bug Something isn't working

Comments

@DanielRJohnson
Copy link
Owner

Some days, update_database.py fails as follows:

for vid in videos:
        for chapter in vid["chapters"] if vid["chapters"] else []:
                # vid is None, vid["chapters"] throws an error

Probably just needs a "if vid is None: continue", but not sure why vid can be None in the first place and only is None on occasion.

@DanielRJohnson DanielRJohnson added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant