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
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/dmenu_extended/main.py", line 775, in cache_save
f.write(item + "\n")
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcf3' in position 58: surrogates not allowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/dmenu_extended_cache_build", line 8, in <module>
sys.exit(build_cache())
File "/usr/local/lib/python3.10/dist-packages/dmenu_extended/main.py", line 2270, in build_cache
d.build_cache()
File "/usr/local/lib/python3.10/dist-packages/dmenu_extended/main.py", line 1237, in build_cache
self.cache_save(filenames, file_cache_files)
File "/usr/local/lib/python3.10/dist-packages/dmenu_extended/main.py", line 805, in cache_save
f.write(item + "\n")
TypeError: a bytes-like object is required, not 'str'
I've seen that bugs of this type have been fixed over time, but I don't know how to fix this one. Any suggestion? I've been using version 1.2.1
The text was updated successfully, but these errors were encountered:
marczuo
pushed a commit
to marczuo/dmenu-extended
that referenced
this issue
May 7, 2024
When build_cache() encounters a UnicodeEncodeError, the original code
did not escape unprintable chars and caused the cache build to fail.
This patch fixes the code so that the culprit is correctly printed in
debug mode.
* Fix UnicodeEncodeError exception handling (#160)
When build_cache() encounters a UnicodeEncodeError, the original code
did not escape unprintable chars and caused the cache build to fail.
This patch fixes the code so that the culprit is correctly printed in
debug mode.
* Incrementing version string (1.2.1 -> 1.2.2)
* Reformatted code using pyblack
---------
Co-authored-by: Marc Zuo <[email protected]>
When I rebuilt the cache, this error occurred:
I've seen that bugs of this type have been fixed over time, but I don't know how to fix this one. Any suggestion? I've been using version 1.2.1
The text was updated successfully, but these errors were encountered: