Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Improve the Request Handle Errors

import requests
 
url = 'wrong url'
 
try:
    r = requests.get(url)
except Exception as e:
    print(f'There was an error: {e}')
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Improve #Request #Handle #Errors
ADD COMMENT
Topic
Name
1+3 =