Bug 1322993 - Guard against deleting nonexistent directory during emulator cleanup; r=whimboo

MozReview-Commit-ID: 7hopCdbHhj1

--HG--
extra : rebase_source : 64fcb946246aa89a00d2039f3cfbf6cdf24c62fc
This commit is contained in:
Maja Frydrychowicz 2017-03-15 15:10:58 -04:00
Родитель bf98e812cb
Коммит 63a91ec1cf
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -165,7 +165,8 @@ class BaseEmulator(Device):
self.connected = False
# Remove temporary files
shutil.rmtree(self.tmpdir)
if os.path.isdir(self.tempdir):
shutil.rmtree(self.tmpdir)
def _get_telnet_response(self, command=None):
output = []