Commit 2b980926 authored by Philipp Hörist's avatar Philipp Hörist

Zeroconf: Catch all exceptions in test_bonjour()

Fixes #9926
parent d485535c
...@@ -48,9 +48,7 @@ def test_avahi(): ...@@ -48,9 +48,7 @@ def test_avahi():
def test_bonjour(): def test_bonjour():
try: try:
import pybonjour # pylint: disable=unused-import import pybonjour # pylint: disable=unused-import
except ImportError: except Exception:
return False
except WindowsError: # pylint: disable=undefined-variable
return False return False
return True return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment