diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-12-01 10:45:29 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-12-01 10:45:29 -0500 |
commit | 1565a3b0017b3a97086278c539256bfd14c50943 (patch) | |
tree | 0cb02b94964630b9d8726258b471ea5dc389c8ee /tests/test___init__.py | |
parent | 38a8de5510da52765cf81348a1137d91b42d3088 (diff) | |
download | b4-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