From the 2018-07-24 logs
Page [[en:Wikipedia:WikiProject Historic sites/Unused images of Historic Places in Canada]] saved
Traceback (most recent call last):
File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 363, in <module>
main()
File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 356, in main
cursor2))
File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 85, in processCountry
photos, withoutPhoto, countryconfig)
File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 35, in group_unused_images_by_source
pywikibot.warning(u'Got value error for {0}'.format(catSortKey))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 9: ordinal not in range(128)
CRITICAL: Closing network session.
<type 'exceptions.UnicodeDecodeError'>Note that common.get_id_from_sort_key() starts by calling unicode(sort_key, 'utf-8')
If that conversion is the missing step then we probably want to do this already in getMonumentPhotos() (and in all other files calling common.get_id_from_sort_key() or querying for the sort_key)