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

add __reduce__ to HubspotError so it can survive pickling #103

Closed jeking3 closed 2 years ago

jeking3 commented 3 years ago

I was capturing the result of a delete call where HubspotNotFound was being thrown and I found I could not unpickle it. I had to add a reduce to HubspotError in order for it to work.

jpetrucciani commented 2 years ago

This is now included in the new release on pip in version 3.2.51! Thanks again for your contribution 😄