[Reportbug-maint] Bug#878088: Bug#878088: reportbug: please inform security and lts teams about security update regressions

Guido Günther agx at sigxcpu.org
Mon Jan 29 12:43:42 UTC 2018


Hi,
On Mon, Jan 29, 2018 at 01:34:51PM +0100, Markus Koschany wrote:
> 
> >> This will not catch 404 or similar http status codes. If you don't care
> >> about the type of error you can just do …
> >>
> >>                            r.raise_for_status()
> 
> Ok, got it. So adding r.raise_for_status() below the request line should
> be sufficient because requests.exceptions.RequestException would also
> catch

Exactly.
 -- Guido



More information about the Reportbug-maint mailing list