You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mint 22.1 Xia (upgraded from 21) with webapp-manager 1.4.0.
I have several apps (and browsers) installed. When I tried to edit one of them, the following error happened. I could not reproduce it, but perhaps the code can be hardened at this location.
Traceback (most recent call last):
File "/usr/lib/webapp-manager/webapp-manager.py", line 366, in on_edit_button
selected_browser_index = [idx for idx, x in enumerate(web_browsers) if x.name == self.selected_webapp.web_browser][0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 144, in apport_excepthook
os.open(pr_filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), "wb"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_lib_webapp-manager_webapp-manager.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/lib/webapp-manager/webapp-manager.py", line 366, in on_edit_button
selected_browser_index = [idx for idx, x in enumerate(web_browsers) if x.name == self.selected_webapp.web_browser][0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Activity
Fix IndexError when editing legacy webapps missing browser metadata
Fix IndexError when editing legacy webapps missing browser metadata
Fix IndexError when editing legacy webapps missing browser metadata
PeterDaveHello commentedon Sep 16, 2025
@7enderhead, I got the same observation and sent PR #364 to fix it. Please feel free to help test and verify the result!
Fix IndexError when editing legacy webapps missing browser metadata