Merge pull request 'fix: use logger.exception() in calculate_pitcher_ratings error handler' (#33) from ai/paper-dynasty-card-creation#17 into main

This commit is contained in:
cal 2026-03-23 12:35:47 +00:00
commit dd42f35674

View File

@ -301,8 +301,10 @@ async def calculate_pitching_cards(
"batting": f"#1W{df_data['pitch_hand']}-C",
}
)
except Exception as e:
logger.error(f"Skipping fg ID {df_data['key_fangraphs']} due to: {e}")
except Exception:
logger.exception(
f"Skipping fg ID {df_data['key_fangraphs']} due to exception"
)
print("Calculating pitching cards...")
pitching_stats.apply(create_pitching_card, axis=1)