Skip to content

Commit

Permalink
Add more helpful message to error when augment transaction step fails
Browse files Browse the repository at this point in the history
See #10
  • Loading branch information
tillywoodfield committed Aug 5, 2024
1 parent 085a300 commit 5d96af5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions iatidata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,12 @@ def transaction_breakdown():


def sql_process():
augment_transaction()
transaction_breakdown()
try:
augment_transaction()
transaction_breakdown()
except Exception:
logger.error("Processing on the 'transaction' table failed, this is usually caused by the sample size being too small")
raise


def export_stats():
Expand Down

0 comments on commit 5d96af5

Please sign in to comment.