dipan004 sahil-1-garg commited on
Commit
cbdac03
·
verified ·
1 Parent(s): 9c5d2db

Update bs/balance_sheet_data_extractor.py (#9)

Browse files

- Update bs/balance_sheet_data_extractor.py (269024c3b7a8fa074a0403b7cd1a42e7e19f7dd6)


Co-authored-by: sahilgarg <sahil-1-garg@users.noreply.huggingface.co>

Files changed (1) hide show
  1. bs/balance_sheet_data_extractor.py +5 -1
bs/balance_sheet_data_extractor.py CHANGED
@@ -78,4 +78,8 @@ def main() -> None:
78
  logger.info(f"Extracted rows: Note 10–15 = {info_10_15.rows} rows")
79
 
80
  if __name__ == "__main__":
81
- main()
 
 
 
 
 
78
  logger.info(f"Extracted rows: Note 10–15 = {info_10_15.rows} rows")
79
 
80
  if __name__ == "__main__":
81
+ try:
82
+ main()
83
+ except Exception as e:
84
+ logger.error(f"Balance sheet data extraction failed: {e}")
85
+ sys.exit(1)