misc: ignore python-dns exception when resolv.conf is not available (#38707)

This commit is contained in:
Frédéric Péters 2019-12-24 16:45:32 +01:00
parent 9fa4b1263e
commit f2a753f811
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ except ImportError:
try:
import DNS
DNS.ParseResolvConf()
except ImportError:
except (ImportError, IOError):
DNS = None
try: