jpetrucciani / hubspot3

python3.6+ hubspot client based on hapipy, but modified to use the newer endpoints and non-legacy python
MIT License
146 stars 72 forks source link

Error on calling client.usage_limits #116

Open bninopaul opened 3 years ago

bninopaul commented 3 years ago

I am getting this error when calling client.usage_limits

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-99b56d0c4e75> in <module>
----> 1 client.usage_limits

~/projects_backup/env/lib/python3.7/site-packages/hubspot3/__init__.py in usage_limits(self)
    369                 current_usage=int(limits["currentUsage"]),
    370                 fetch_status=limits["fetchStatus"],
--> 371                 resets_at=datetime.fromtimestamp(int(limits["resetsAt"]) / 1000),
    372                 usage_limit=limits["usageLimit"],
    373             )

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'