AttributeError: 'NoneType' object has no attribute 'query_exists' when adding folder
I have just download the flatpaked version of the app and tried to add my /tmp/
folder. The app reacted with this:
(metadata-cleaner:2): GLib-GIO-CRITICAL **: 21:09:32.737: g_file_get_child: assertion 'name != NULL' failed
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/metadatacleaner/ui/window.py", line 224, in _on_folder_chooser_dialog_response
self.file_store.add_gfiles_from_dirs(
File "/app/lib/python3.9/site-packages/metadatacleaner/modules/filestore.py", line 141, in add_gfiles_from_dirs
self.add_gfiles(gfiles)
File "/app/lib/python3.9/site-packages/metadatacleaner/modules/filestore.py", line 177, in add_gfiles
files = list(filter(None, executor.map(
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 608, in result_iterator
yield fs.pop().result()
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 438, in result
return self.__get_result()
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
raise self._exception
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/lib/python3.9/site-packages/metadatacleaner/modules/filestore.py", line 191, in _file_from_gfile
if not gfile.query_exists(None):
AttributeError: 'NoneType' object has no attribute 'query_exists'
Dunno if it's related, but when cleaning a single file, the app didn't like it with ERROR:root:In file /run/user/1000/doc/2454cbb7/fill.xlsx, element xl/tables/table1.xml's format (application/xml) isn't supported