From b9be28595aaf5f5f83aec1a47979f6b85955f123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lenksj=C3=B6?= <5889538+lenkan@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:50:51 +0100 Subject: [PATCH] fix: operation spelling error in logs (#149) --- src/keria/core/longrunning.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/keria/core/longrunning.py b/src/keria/core/longrunning.py index fec1a67..b23eae0 100644 --- a/src/keria/core/longrunning.py +++ b/src/keria/core/longrunning.py @@ -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] @@ -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"] @@ -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"]) @@ -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: @@ -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']): @@ -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'] @@ -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"]