rikas / zoho_hub

Zoho CRM API V2 Wrapper
MIT License
25 stars 30 forks source link

Handle INTERNAL_ERROR response: raise InternalError instead of TypeError #32

Closed Fabien-Wecasa closed 5 years ago

Fabien-Wecasa commented 5 years ago

A small PR to raise a dedicated error for this API reply (currenty we get TypeError: no implicit conversion of Symbol into Integer) :

{
      "code": "INTERNAL_ERROR",
      "details": {},
      "message": "Internal Server Error",
      "status": "error"
}