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 221579a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions iatidata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,14 @@ 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 221579a

Please sign in to comment.