aboutsummaryrefslogtreecommitdiff
path: root/tests/test___init__.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-01 10:45:29 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-01 10:45:29 -0500
commit1565a3b0017b3a97086278c539256bfd14c50943 (patch)
tree0cb02b94964630b9d8726258b471ea5dc389c8ee /tests/test___init__.py
parent38a8de5510da52765cf81348a1137d91b42d3088 (diff)
downloadb4-1565a3b0017b3a97086278c539256bfd14c50943.tar.gz
Fix crash when dnspython is not available
If we don't have dnspython, then we don't have _resolver. Make sure it exists and check if it's not None before looking for hasattr. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'tests/test___init__.py')
0 files changed, 0 insertions, 0 deletions