Bug 916913 - is_b2g condition shouldn't fail if tree not built, r=gps

This commit is contained in:
Andrew Halberstadt 2013-09-17 18:14:57 -04:00
parent a09358a2db
commit 027df3510d

View File

@ -521,7 +521,9 @@ class MachCommandConditions(object):
@staticmethod
def is_b2g(cls):
"""Must have a Boot to Gecko build."""
return cls.substs.get('MOZ_WIDGET_TOOLKIT') == 'gonk'
if hasattr(cls, 'substs'):
return cls.substs.get('MOZ_WIDGET_TOOLKIT') == 'gonk'
return False
class PathArgument(object):