>> 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
signature.asc
Description: OpenPGP digital signature