PennyDreadfulMTG / perf-reports

2 stars 2 forks source link

Error running task maintenance.update_translations #62994

Open vorpal-buildbot opened 8 months ago

vorpal-buildbot commented 8 months ago

Reported on CLI by CLI

InvalidDataException Unexpected string type: ('%(num)d entrada de liga activa', '%(num)d entradas de liga activas') Stack Trace: ``` Python traceback Traceback with variables (most recent call last): File "/home/pdadmin/decksite/run.py", line 186, in run_all_tasks s.run() module = 'maintenance' with_flag = 'DAILY' error = None m = APP = _importer = FileFinder('/home/pdadmin/decksite/maintenance') modname = 'update_translations' _ispkg = False s = timer = 29098378.622660253 t = 1.2997513338923454 c = InvalidDataException("Unexpected string type: ('%(num)d entrada de liga activa', '%(num)d entradas de liga activas')") repo = File "/home/pdadmin/decksite/maintenance/update_translations.py", line 34, in run validate_translations.ad_hoc() api_key = '58d22d3944944f5381171e461c50cebe' client = languages = [{'name': 'Chinese (simplified)', 'code': 'zh-Hans', 'translations': 90, 'percentage': 47.37, 'updated': '2023-02-10T15:34:46+0000'}, {'name': 'Danish', 'code': 'da', 'translations': 36, 'percentage': 18.95, 'updated': '2023-02-13T13:12:21+0000'}, {'name': 'Dutch', 'code': 'nl', 'translations': 0, 'percentage': 0, 'updated': ''}, {'name': 'French', 'code': 'fr', 'translations': 181, 'percentage': 95.26, 'updated': '2021-10-15T12:21:28+0000'}, {'name': 'German', 'code': 'de', 'translations': 157, 'percentage': 82.63, 'updated': '2023-05-06T22:05:14+0000'}, {'name': 'Indonesian', 'code': 'id', 'translations': 48, 'percentage': 25.26, 'updated': '2018-02-09T03:52:03+0000'}, {'name': 'Italian', 'code': 'it', 'translations': 152, 'percentage': 80, 'updated': '2023-09-09T12:19:44+0000'}, {'name': 'Japanese', 'code': 'ja', 'translations': 190, 'percentage': 100, 'updated': '2020-06-01T14:37:40+0000'}, {'name': 'Polish', 'code': 'pl', 'translations': 70, 'percentage': 36.84, 'updated': '2021-0... locale = {'name': 'Swedish', 'code': 'sv', 'translations': 82, 'percentage': 43.16, 'updated': '2018-05-23T17:58:19+0000'} path = 'shared_web/translations/sv/LC_MESSAGES' pofile = 'shared_web/translations/sv/LC_MESSAGES/messages.po' File "/home/pdadmin/decksite/maintenance/validate_translations.py", line 15, in ad_hoc validate_pofile(path) _ = [] files = ['messages.mo', 'messages.po'] path = 'shared_web/translations/es/LC_MESSAGES/messages.po' directory = 'shared_web/translations/es/LC_MESSAGES' File "/home/pdadmin/decksite/maintenance/validate_translations.py", line 23, in validate_pofile validate_string(message, catalog) path = 'shared_web/translations/es/LC_MESSAGES/messages.po' f = <_io.BufferedRandom name='shared_web/translations/es/LC_MESSAGES/messages.po'> catalog = messages = [, , , , , , , , , , , , , , , , , , , , , , , , , , File "/home/pdadmin/decksite/maintenance/validate_translations.py", line 48, in validate_string raise InvalidDataException('Unexpected string type: {0}'.format(repr(message.string))) message = catalog = shared.pd_exception.InvalidDataException: Unexpected string type: ('%(num)d entrada de liga activa', '%(num)d entradas de liga activas') ```

Exception_hash: f03f1b3fdd4e071792d7e374d7050d9b3869c31d