fix(magentic-one): Remove redundant exception raising in update_ledger (#4759)

* fix(magentic-one): Remove redundant exception raising in update_ledger method

* Remove unused exception variable 'e'

---------

Co-authored-by: Roy Belio <robelio@microsoft.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
This commit is contained in:
Roy Belio
2024-12-20 05:30:41 +02:00
committed by GitHub
parent 453fe0cafd
commit 3dd4be949e

View File

@@ -249,14 +249,13 @@ class LedgerOrchestrator(BaseOrchestrator):
if key_error:
continue
return ledger_dict
except json.JSONDecodeError as e:
except json.JSONDecodeError:
self.logger.info(
OrchestrationEvent(
f"{self.metadata['type']} (error)",
f"Failed to parse ledger information: {ledger_str}",
)
)
raise e
raise ValueError("Failed to parse ledger information after multiple retries.")