Skip to content

Commit

Permalink
ensure creder.attrib is not a string before treating it like a dict (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncolburne committed Mar 25, 2024
1 parent ad7edbd commit 4999b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keri/vdr/verifying.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def saveCredential(self, creder, prefixer, seqner, saider):
self.reger.issus.add(keys=issuer, val=saider)
self.reger.schms.add(keys=schema, val=saider)

if 'i' in creder.attrib:
if not isinstance(creder.attrib, str) and 'i' in creder.attrib:
subject = creder.attrib["i"].encode("utf-8")
self.reger.subjs.add(keys=subject, val=saider)

Expand Down

0 comments on commit 4999b70

Please sign in to comment.