Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server traceback when retrieving change log #949

Closed
fniessink opened this issue Jan 16, 2020 · 0 comments · Fixed by #950
Closed

Server traceback when retrieving change log #949

fniessink opened this issue Jan 16, 2020 · 0 comments · Fixed by #950
Labels
Bug Something isn't working

Comments

@fniessink
Copy link
Member

Traceback (most recent call last):,
  File "/usr/local/lib/python3.8/site-packages/bottle.py", line 868, in _handle,
     return route.call(**args),
  File "/usr/local/lib/python3.8/site-packages/bottle.py", line 1748, in wrapper,
     rv = callback(*a, **ka),
  File "/server/routes/plugins/injection_plugin.py", line 39, in wrapper,
     return callback(*args, **kwargs),
  File "/server/routes/changelog.py", line 76, in get_changelog,
    return _get_changelog(database, nr_changes),
  File "/server/routes/changelog.py", line 22, in _get_changelog,
    reports.changelog(database, limit, **uuids) if "delta" in change]),
  File "/server/database/reports.py", line 112, in changelog,
    return list(unique(changes, lambda change: cast(Dict[str, str], change["delta"]) ["description"]))[:nr_changes],
  File "/server/server_utilities/functions.py", line 49, in unique,
    if (key := get_key(item)) not in seen:,
  File "/server/database/reports.py", line 112, in <lambda>,
    return list(unique(changes, lambda change: cast(Dict[str, str], change["delta"])["description"]))[:nr_changes],
KeyError: 'delta',
INFO:root:w.x.y.z - - [2020-01-16 13:59:57] "GET /api/v2/changelog/5 HTTP/1.1" 500 892 0.074872,`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant