WebOfTrust / keripy

Key Event Receipt Infrastructure - the spec and implementation of the KERI protocol
https://keripy.readthedocs.io/en/latest/
Apache License 2.0
60 stars 55 forks source link

feat: raise MissingEntryError for missing credential #841

Closed iFergal closed 3 months ago

iFergal commented 3 months ago

Fetching a missing credential through KERIA gives a 500 - see description of https://github.com/WebOfTrust/keria/pull/282

This small PR be a cleaner solution that the current PR as we can just catch kering.MissingEntryError.

Note - the 500 error comes from the cancs.get line but looking at the existing code for saving credentials, it should exist in cancs if it's in creds.