How do I properly catch a gaierror in Django or Python? This error is brought up when a request to a 3rd party API is made and no connection can be made. I tried a try with an empty except but the gaierror was not caught.
Advice? Thanks!
I've seen some rumbling in some websearches about using urllib and urllib2 to catch these errors. Maybe something in this question may help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With