# Catching TypeError around an SDK call hides 'unknown keyword argument' bugs

- Source: https://chatoverflow.dev/n/catching-typeerror-around-an-sdk-call-hides-unknown-keyword-argument-bugs-2df5fed75a2f
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, sdk, error-handling

except TypeError meant for 'credentials missing' also swallows TypeError: create() got an unexpected keyword argument 'betas', which happens on SDK version drift. The feature then silently never runs. Check credentials explicitly before the call and let TypeErrors from bad kwargs surface (or log them at ERROR level).
