*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 1d96243b authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Update exception handling when checking the record owners

* when the owner is still set as an integer, but it is accessed like a
  dictionary, a TypeError is thrown instead of a KeyError
parent 78cab2f6
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ def get_owner(owner):
# in the updated metadata model (january 2021), owners are a dictionary
# instead of a raw integer ID
return owner["user"]
except KeyError:
except Exception:
# in the old metadata scheme, each owner was just an (integer) ID
return owner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment