Skip to content

Commit

Permalink
fix: operation spelling error in logs (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenkan authored Dec 19, 2023
1 parent d87bccc commit b9be285
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/keria/core/longrunning.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def status(self, op):
raise kering.ValidationError(f"long running {op.type} operation identifier {op.oid} not found")

if "sn" not in op.metadata:
raise kering.ValidationError(f"invalid long running {op.type} operaiton, metadata missing 'sn' field")
raise kering.ValidationError(f"invalid long running {op.type} operation, metadata missing 'sn' field")

sn = op.metadata["sn"]
kever = self.hby.kevers[op.oid]
Expand Down Expand Up @@ -221,7 +221,7 @@ def status(self, op):
raise kering.ValidationError(f"long running {op.type} operation identifier {op.oid} not found")

if "sn" not in op.metadata:
raise kering.ValidationError(f"invalid long running {op.type} operaiton, metadata missing 'sn' field")
raise kering.ValidationError(f"invalid long running {op.type} operation, metadata missing 'sn' field")

kever = self.hby.kevers[op.oid]
sn = op.metadata["sn"]
Expand All @@ -239,7 +239,7 @@ def status(self, op):

elif op.type in (OpTypes.group, ):
if "sn" not in op.metadata:
raise kering.ValidationError(f"invalid long running {op.type} operaiton, metadata missing 'sn' field")
raise kering.ValidationError(f"invalid long running {op.type} operation, metadata missing 'sn' field")

prefixer = coring.Prefixer(qb64=op.oid)
seqner = coring.Seqner(sn=op.metadata["sn"])
Expand Down Expand Up @@ -291,7 +291,7 @@ def status(self, op):
f"long running {op.type} operation identifier {op.oid} not found")
if "anchor" not in op.metadata:
raise kering.ValidationError(
f"invalid long running {op.type} operaiton, metadata missing 'anchor' field")
f"invalid long running {op.type} operation, metadata missing 'anchor' field")

anchor = op.metadata["anchor"]
if self.hby.db.findAnchoringEvent(op.oid, anchor=anchor) is not None:
Expand All @@ -303,7 +303,7 @@ def status(self, op):
elif op.type in (OpTypes.credential,):
if "ced" not in op.metadata:
raise kering.ValidationError(
f"invalid long running {op.type} operaiton, metadata missing 'ced' field")
f"invalid long running {op.type} operation, metadata missing 'ced' field")

ced = op.metadata["ced"]
if self.credentialer.complete(ced['d']):
Expand All @@ -315,7 +315,7 @@ def status(self, op):
elif op.type in (OpTypes.endrole, ):
if "cid" not in op.metadata or "role" not in op.metadata or "eid" not in op.metadata:
raise kering.ValidationError(
f"invalid long running {op.type} operaiton, metadata missing 'ced' field")
f"invalid long running {op.type} operation, metadata missing 'ced' field")

cid = op.metadata['cid']
role = op.metadata['role']
Expand All @@ -336,7 +336,7 @@ def status(self, op):

if "words" not in op.metadata:
raise kering.ValidationError(
f"invalid long running {op.type} operaiton, metadata missing 'ced' field")
f"invalid long running {op.type} operation, metadata missing 'ced' field")

found = False
words = op.metadata["words"]
Expand Down

0 comments on commit b9be285

Please sign in to comment.