pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

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

Open bugzilla-to-github opened this issue 4 years ago • 3 comments

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 avatar Apr 07 '21 17:04 bugzilla-to-github

Comment Author: GitHub Bugzilla PR Linker <[email protected]>

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

bugzilla-to-github avatar Apr 07 '21 17:04 bugzilla-to-github

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

potat0 avatar Jan 28 '24 22:01 potat0

Indeed. See the comment in the PR, though:

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

mathjazz avatar Jan 29 '24 09:01 mathjazz