scli won't start due to UnicodeDecodeError. One of my group-cache files cannot be decoded.
./scli --ver
scli 0.6.4-9-g2b1670b
Output:
Traceback (most recent call last):
File "/Users/me/github/scli/./scli", line 4461, in <module>
main()
File "/Users/me/github/scli/./scli", line 4443, in main
coord = Coordinate()
File "/Users/me/github/scli/./scli", line 3806, in __init__
self._contacts = Contacts(sigdata)
File "/Users/me/github/scli/./scli", line 1041, in __init__
self.reload()
File "/Users/me/github/scli/./scli", line 1044, in reload
indivs_dicts, groups_dicts = self._sigdata.parse_data_file()
File "/Users/me/github/scli/./scli", line 885, in parse_data_file
cached_name = self._get_group_v2_cache_name(group_id)
File "/Users/me/github/scli/./scli", line 923, in _get_group_v2_cache_name
grp_name = cache[2:name_end].decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 21: invalid start byte
scli won't start due to
UnicodeDecodeError
. One of my group-cache files cannot be decoded.Output:
Some extra info:
(yes, the groupname really is just
P
, as I thought it might be due to some unknown character and renamed the group toP
.As a workaround I changed
_get_group_v2_cache_name
like: