Page MenuHomePhabricator

Unused image statistics updates fail
Closed, ResolvedPublic

Description

I just noticed that the statistics page for unused images has not been updating since 2017-09-25 whereas the unused image pages themselves are still updating.

Event Timeline

Grepping a bit in the logs reveals

makeStatistics(statistics)
  File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 309, in makeStatistics
    'Template:{0}'.format(countryconfig.get('rowTemplate')))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
CRITICAL: Closing network session.
<type 'exceptions.UnicodeEncodeError'>

writing a patch.

Change 390064 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] Allow non-ascii template names

https://gerrit.wikimedia.org/r/390064

Change 390064 merged by jenkins-bot:
[labs/tools/heritage@master] [BUGFIX]Allow non-ascii template names

https://gerrit.wikimedia.org/r/390064

Oooh it looks so pretty.

...And we seem to have missmapped Iraq