Skip to content

Commit

Permalink
fix: Calling db.KeyHelper with None raises a unhandled `NotImplem…
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneberth committed Oct 9, 2024
1 parent be93a65 commit c75a82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viur/core/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ def read(

try:
db_key = db.keyHelper(key or skel["key"], skel.kindName)
except ValueError: # This key did not parse
except (ValueError, NotImplementedError): # This key did not parse
return None

if not (db_res := db.Get(db_key)):
Expand Down

0 comments on commit c75a82a

Please sign in to comment.