Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/publish/formatters/ninjs_formatter.py", line 120, in format
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/publish/formatters/ninjs_formatter.py", line 186, in _transform_to_ninjs
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/publish/formatters/ninjs_formatter.py", line 309, in _get_service
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | return [format_cv_item(item, article.get('language', '')) for item in article.get('anpa_category', [])]
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/publish/formatters/ninjs_formatter.py", line 309, in <listcomp>
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | return [format_cv_item(item, article.get('language', '')) for item in article.get('anpa_category', [])]
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/publish/formatters/ninjs_formatter.py", line 71, in format_cv_item
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/publish/formatters/ninjs_formatter.py", line 64, in get_locale_name
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | return item.get('translations', {}).get('name', {}).get(language, None) or item.get('name', '')
Feb 19 12:29:24 SUPERDESK sh[20431]: 12:29:24 rest.1 | AttributeError: 'NoneType' object has no attribute 'get'
How can i solve this?
Post edited by Nalyk Calmis at 2018-02-20 10:53:05