mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-25 03:00:17 +00:00
Do not traceback when DNS resolution time out.
Just log that the resolution timed out, and fall back to the hostname from the JID in this case
This commit is contained in:
parent
acc2d071ac
commit
897a9ac333
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,8 @@ class ClientXMPP(BaseXMPP):
|
|||
except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer):
|
||||
log.debug("No appropriate SRV record found." + \
|
||||
" Using JID server name.")
|
||||
except (dns.exception.Timeout,):
|
||||
log.debug("DNS resolution timed out.")
|
||||
else:
|
||||
# Pick a random server, weighted by priority.
|
||||
|
||||
|
|
Loading…
Reference in a new issue