Skip to content
Snippets Groups Projects
Commit efe51f98 authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix exception for non-integer in changelog id, Closes #22

parent 570b296b
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,10 @@ def _changelog_entry_db_to_json(entry_db: DbResultRow) -> dict:
modifying_user_id = entry_db["who"]
table = str(entry_db["table"])
field = str(entry_db["field"])
try:
id_value = int(entry_db["id_value"])
except ValueError:
id_value = -1 # There are a few entries in the db which contain a string
value_old = entry_db["value_old"]
value_new = str(entry_db["value_new"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment