#1136367 onionshare: AttributeError object has no attribute 'filename'

#1136367#5
Date:
2026-05-12 18:28:46 UTC
From:
To:
Dear Maintainer,

something triggered this error probably when i clicked 'start sharing'

AttributeError: 'PySide6.QtWidgets.QListWidgetItem' object has no
attribute 'filename'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/onionshare/tab/mode/file_selection.py",
line 430, in update
    self.save_filenames()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/onionshare/tab/mode/file_selection.py",
line 524, in save_filenames
    filenames = self.get_filenames()
  File "/usr/lib/python3/dist-packages/onionshare/tab/mode/file_selection.py",
line 517, in get_filenames
    filenames.append(self.file_list.item(index).filename)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

i'm guessing one of the files i have has been moved since i added it
to the list of files
to share but without further data it's hard to know what exactly
causes this error.
perhaps if it's going to emit this error, to print some information in
the error to clarify what exactly is going on