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 _______________________________________________ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint