mathjazz / pontoon

In-place localization tool
https://pontoon.mozilla.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

[sync] Sync breaks with TypeError: 'builtin_function_or_method' object is not subscriptable #637

Closed mathjazz closed 3 years ago

mathjazz commented 3 years ago

This issue was created automatically with bugzilla2github.

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
mathjazz 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