Occasionally, haveibeenpwned.com returns 524 status codes which are not handled by the client, so this results in a JSONDecodeError. It might be a good idea to handle any 5xx status codes the same way, something like "An error occurred on haveibeenpwned.com. Please try again later."
Very similar to https://github.com/icanhasfay/PyPwned/issues/2.
Occasionally,
haveibeenpwned.com
returns 524 status codes which are not handled by the client, so this results in aJSONDecodeError
. It might be a good idea to handle any 5xx status codes the same way, something like "An error occurred on haveibeenpwned.com. Please try again later."