mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
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:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user