AlienVault-OTX / OTX-Python-SDK

The Python SDK for AlienVault OTX
Other
358 stars 162 forks source link

Create UnexpectedHTTPError Exception #47

Open jbfeldman opened 4 years ago

jbfeldman commented 4 years ago

Create an additional Exception class for handling all non-successful HTTP responses that are not covered by the previously created exception classes. Allows clients who face 500 series HTTP errors to better catch those exceptions instead of being forced to catch all exceptions in their try/except blocks