You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle null usage token fields to prevent TypeError (#10)
dict.get(key, default) only uses the default when the key is absent;
when the API emits a null value the result is None, causing
`+= None` to raise TypeError. Replace `.get(key, 0)` with
`.get(key) or 0` so null values are treated as 0.
Fixes#10
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments