I have the following code block
def simple_get(url):
try:
page_response = requests.get(page_link, timeout=5)
if page_response.status_code == 200:
# extract
else:
print(page_response.status_code)
# notify, try again
except requests.Timeout as e:
print("It is time to timeout")
print(str(e))
except # other exception
When I run it give me the following error File "", line 11 else: ^ IndentationError: expected an indented block
I dont understand why is the notebook still asking for indentation when I already have the "else" statement indented
Aucun commentaire:
Enregistrer un commentaire