chaoss / grimoirelab-elk

GNU General Public License v3.0
59 stars 121 forks source link

[weblate][enrich] KeyError: 'glossary_term' #985

Closed zhquan closed 3 years ago

zhquan commented 3 years ago

Not all weblate instances have the glossary_term field

Error enriching raw from weblate (https://translate.mattermost.com): 'glossary_term'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/grimoire_elk/elk.py", line 530, in enrich_backend
    enrich_count = enrich_items(ocean_backend, enrich_backend)
  File "/usr/local/lib/python3.7/dist-packages/grimoire_elk/elk.py", line 318, in enrich_items
    total = enrich_backend.enrich_items(ocean_backend)
  File "/usr/local/lib/python3.7/dist-packages/grimoire_elk/enriched/enrich.py", line 394, in enrich_items
    rich_item = self.get_rich_item(item)
  File "/usr/local/lib/python3.7/dist-packages/grimoire_elk/enriched/enrich.py", line 98, in decorator
    eitem = func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/grimoire_elk/enriched/weblate.py", line 115, in get_rich_item
    eitem['glossary_term'] = change['glossary_term']
KeyError: 'glossary_term'