Error while building cache
MeisterLLD opened this issue · 0 comments
MeisterLLD commented
Hello,
I have the following error while building cache since a few days
[lld@pcfixe dmenu-extended]$ dmenu_extended_cache_build
Traceback (most recent call last):
File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 771, in cache_save
f.write(item + "\n")
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc82' in position 34: surrogates not allowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lld/.local/bin/dmenu_extended_cache_build", line 8, in <module>
sys.exit(build_cache())
File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 2266, in build_cache
d.build_cache()
File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 1233, in build_cache
self.cache_save(filenames, file_cache_files)
File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 801, in cache_save
f.write(item + "\n")
TypeError: a bytes-like object is required, not 'str'
I guess that I have a filename using a unicode character that causes a problem but I don't know where and I guess if the filename can be set like that, dmenu should be able to cache it ? Or at least just ignore it, but here it prevents everything else from being cached.