validate:launcher: Do not check ModuleNotFound exception

It is a subclass of ImportError and is avalaible only since 3.6
https://ci.gstreamer.net/job/pitivi-flatpak/626/console
This commit is contained in:
Thibault Saunier 2017-06-28 15:54:13 -04:00
parent 3b20a1ccde
commit c540601ed0

View file

@ -42,7 +42,7 @@ from .loggable import Loggable
try: try:
from lxml import etree as ET from lxml import etree as ET
except (ModuleNotFoundError, ImportError): except ImportError:
import xml.etree.cElementTree as ET import xml.etree.cElementTree as ET
from .utils import mkdir, Result, Colors, printc, DEFAULT_TIMEOUT, GST_SECOND, \ from .utils import mkdir, Result, Colors, printc, DEFAULT_TIMEOUT, GST_SECOND, \