Answers for "ignore error python"

4

python request remove warning

#Removes request warnings from console

import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning

requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
Posted by: Guest on January-06-2020
0

python ignore exception

except Exception:
    pass
Posted by: Guest on September-11-2021
0

How do I ignore an error in Python?

Add Source
Use pass to ignore an exception
Within a try and except block, use pass in the except clause to indicate no action is required in handling the caught exception.
Posted by: Guest on March-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language