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 TypeError when incrementing a None value (intercom#162)
* Fix TypeError when incrementing a None value
Code like this:
```python
intercom_user.increment('logins')
```
Can throw a `TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'` if logins has a `None` value.
As the increment code already assumes that a missing key should be treated as zero, I don't think it's that much of a stretch to extend this to `None` values.
* Add test coverage.
0 commit comments