validate:launcher:baseclasses: Avoid raising axception when all getting scenarios

https://bugzilla.gnome.org/show_bug.cgi?id=743994
This commit is contained in:
Thibault Saunier 2015-01-20 09:59:23 +01:00
parent 00b222f38f
commit be20eb015c

View file

@ -21,7 +21,6 @@
import os
import sys
import imp
import re
import time
import utils
@ -1264,7 +1263,7 @@ class ScenarioManager(Loggable):
return scenarios
def get_scenario(self, name):
if os.path.isabs(name) and name.endswith(self.FILE_EXTENDION):
if name is not None and os.path.isabs(name) and name.endswith(self.FILE_EXTENDION):
scenarios = self.discover_scenarios([name])
if scenarios: