k-monitor / sajtoadatbazis-automat

3 stars 0 forks source link

KeyError törölt entitásnál #190

Closed boapps closed 3 months ago

boapps commented 4 months ago
ERROR:auto_kmdb:Exception on /api/article/61799 [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1455, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 869, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 867, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 852, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/usr/src/app/auto_kmdb/routes.py", line 72, in api_article
    article = get_article(connection, id)
  File "/usr/src/app/auto_kmdb/db.py", line 630, in get_article
    article["institutions"] = get_article_institutions_kmdb(
  File "/usr/src/app/auto_kmdb/db.py", line 552, in get_article_institutions_kmdb
    return [
  File "/usr/src/app/auto_kmdb/db.py", line 556, in <listcomp>
    "name": all_institutions_by_id[row["id"]],
KeyError: 16489