Am currently using django to send emails, but the thing is that, when I am working on the local host without internet connection and I try to send an email. I get `[Errno 11004] getaddrinfo` failed which is understandable. The thing is that I want to know whether there is a way to catch errors as such so that I can manage them properly ?. Is there a way ?