misc: ignore python-dns exception when resolv.conf is not available (#38707)
This commit is contained in:
parent
9fa4b1263e
commit
f2a753f811
|
@ -46,7 +46,7 @@ except ImportError:
|
|||
try:
|
||||
import DNS
|
||||
DNS.ParseResolvConf()
|
||||
except ImportError:
|
||||
except (ImportError, IOError):
|
||||
DNS = None
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue