Fix ``romt crate --keep-going`` to correctly handle ``403 Forbidden``
-
Fix
romt crate --keep-going
to correctly handle403 Forbidden
and
other HTTP status failures (thanks to Anthony Gray,
https://github.com/f34rt3hbunn3h).When porting from
requests
tohttpx
, the exception handling in the
Downloader
class was incorrectly switched from therequests
library's
RequestException
base class to thehttpx
library'sRequestError
class; the former is the base class for all of the exceptions inrequests
,
whereas the latter doesn't cover all exceptions inhttpx
. This fix
switches the exception handler to properly usehttpx.HTTPError
to catch
allhttpx
library exceptions.References: