Skip to content

Fix a crash stemming from reload_albums() returning None #1622

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

C0rn3j
Copy link
Collaborator

@C0rn3j C0rn3j commented May 18, 2025

Return empty array instead

Should fix this bug:

Traceback (most recent call last):
  File "/usr/bin/tauonmb", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.13/site-packages/tauon/__main__.py", line 456, in main
    from tauon.t_modules import t_main
  File "/usr/lib/python3.13/site-packages/tauon/t_modules/t_main.py", line 44855, in <module>
    tauon.bottom_bar1.render()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/tauon/t_modules/t_main.py", line 27499, in render
    pctl.show_current()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/tauon/t_modules/t_main.py", line 2375, in show_current
    ap = self.tauon.get_album_info(i)[1][0]
         ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.13/site-packages/tauon/t_modules/t_main.py", line 17766, in get_album_info
    for i, p in enumerate(reversed(dex)):
                          ~~~~~~~~^^^^^
TypeError: 'NoneType' object is not reversible

@Taiko2k Taiko2k merged commit d919ca7 into Taiko2k:master May 19, 2025
8 checks passed
@C0rn3j C0rn3j deleted the reloadfix branch May 19, 2025 11:03
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