Bug 1028746 - Running mach mochitest-remote from gecko srcdir raises AttributeError instead of being helpful, r=gps, DONTBUILD, a=NPOTB

This commit is contained in:
Andrew Halberstadt 2014-06-24 13:47:19 -04:00
Родитель 40d81a2ba5
Коммит b11804bb36
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -739,7 +739,10 @@ class MachCommands(MachCommandBase):
# they should be modified to work with all devices.
def is_emulator(cls):
"""Emulator needs to be configured."""
return cls.device_name.startswith('emulator')
try:
return cls.device_name.startswith('emulator')
except AttributeError:
return False
@CommandProvider