Improve The Request Handle Errors

[Solved] Improve The Request Handle Errors | Perl - Code Explorer | yomemimo.com
Question : Improve the Request Handle Errors

Answered by : softhunt

import requests
url = 'wrong url'
try: r = requests.get(url)
except Exception as e: print(f'There was an error: {e}')

Source : https://softhunt.net/python-requests-library/ | Last Update : Wed, 01 Jun 22

Answers related to improve the request handle errors

Code Explorer Popular Question For Perl