Skip to content

Commit

Permalink
Update mina-staking-ledgers-exporter/scripts/mina-staking-ledgers-exp…
Browse files Browse the repository at this point in the history
…orter.py

Co-authored-by: John Marcou <[email protected]>
  • Loading branch information
kaozenn and johnmarcou authored Aug 14, 2024
1 parent 780556d commit d2e492e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ def main():
logger.info(f" -- Processing next epoch ({next_epoch}) --")
try:
process_staking_ledger(synced_pod, next_epoch, "next-epoch-ledger")
except Exception as e:
logger.warning(f"Unable to process the next epoch {next_epoch} due to error: {e}, skipping further processing.")
except subprocess.CalledProcessError as e:
if "Ledger not found: next staking ledger is not finalized yet" in e.output:
logger.warning(f"Unable to process the next epoch {next_epoch} due to error: {e.output}, skipping further processing.")
else:
raise e

logger.info("Complete with success")

Expand Down

0 comments on commit d2e492e

Please sign in to comment.