mozilla / pontoon

Mozilla's Localization Platform
https://pontoon.mozilla.org
BSD 3-Clause "New" or "Revised" License
1.46k stars 529 forks source link

Sync breaks with TypeError: 'builtin_function_or_method' object is not subscriptable #2285

Open bugzilla-to-github opened 3 years ago

bugzilla-to-github commented 3 years ago

This issue was created automatically by a script.

Bug 1703748

Bug Reporter: @mathjazz

Traceback (most recent call last):
  File "/app/.heroku/python/lib/python3.8/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/app/.heroku/python/lib/python3.8/site-packages/newrelic/hooks/application_celery.py", line 84, in wrapper
    return wrapped(*args, **kwargs)
  File "/app/.heroku/python/lib/python3.8/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/pontoon/sync/core.py", line 68, in wrapped_func
    return func(self, *args, **kwargs)
  File "/app/pontoon/sync/tasks.py", line 101, in sync_project
    sync_translations(
  File "/app/pontoon/sync/tasks.py", line 336, in sync_translations
    new_locales.append[locale.pk]
TypeError: 'builtin_function_or_method' object is not subscriptable
bugzilla-to-github commented 3 years ago

Comment Author: GitHub Bugzilla PR Linker <pulgasaur@mozilla.bugs>

Created attachment 9214321 Link to GitHub pull-request: https://github.com/mozilla/pontoon/pull/1914

Attached file: file_611289612.txt (text/x-github-pull-request, 44 bytes) Description: Link to GitHub pull-request: https://github.com/mozilla/pontoon/pull/1914

potat0 commented 9 months ago

This was already fixed in https://github.com/mozilla/pontoon/pull/1914 ?

mathjazz commented 9 months ago

Indeed. See the comment in the PR, though:

I'll keep the bug open to increase test coverage and catch the error early.