>> 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 this.

Thanks

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reportbug-maint mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint

Reply via email to