PyMISP/pymisp
StrayLightning 8a8b0c113d Check for zero-length 500 response from the server and produce a suitable error message
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.
2017-12-05 17:44:15 +00:00
..
data chg: Bump misp-objects 2017-12-04 14:11:45 +01:00
tools Merge pull request #146 from c-goes/lief_integrity_exception 2017-12-04 18:57:52 +01:00
__init__.py chg: Bump version to 2.4.83 2017-12-01 17:55:58 +01:00
abstract.py new: Proper debug system 2017-11-08 17:33:55 -08:00
api.py Check for zero-length 500 response from the server and produce a suitable error message 2017-12-05 17:44:15 +00:00
exceptions.py new: Proper debug system 2017-11-08 17:33:55 -08:00
mispevent.py chg: Add new objects: MISPUser and MISPOrganisation 2017-11-17 16:51:46 +01:00