Avahi: don't fail if avahi gir is not installed

Fixes #9610
This commit is contained in:
André Apitzsch 2019-03-04 08:20:01 +01:00
parent ee6f65f404
commit 74c5f3d0e9
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def test_avahi():
import gi
gi.require_version('Avahi', '0.6')
from gi.repository import Avahi # pylint: disable=unused-variable
except ImportError:
except (ImportError, ValueError):
return False
return True