mirror of https://github.com/MISP/PyMISP
![]() In experimenting with PyMISP I am triggering problems on the server I am using. Occasionally the server will return a 500 response with a message indicating an internal error, but more often than not it returns a 500 response with no contents, and _check_response falls over itself, generating hard-to-fathom exception from the json internals. This commit hardens _check_response by detecting zero-length responses and raising a suitable exception. Also fix a missing bracket in one of the subsequent exception strings. |
||
---|---|---|
.. | ||
data | ||
tools | ||
__init__.py | ||
abstract.py | ||
api.py | ||
exceptions.py | ||
mispevent.py |