ttfw: Fix exception message when an error occurs finding files to flash

pull/4494/head
Angus Gratton 2019-12-11 17:38:19 +11:00 zatwierdzone przez Angus Gratton
rodzic 9fa87f04da
commit b20eaf3306
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -213,6 +213,7 @@ class IDFDUT(DUT.SerialDUT):
Structured this way so @_uses_esptool will reconnect each time
"""
flash_files = []
try:
# note: opening here prevents us from having to seek back to 0 each time
flash_files = [(offs, open(path, "rb")) for (offs, path) in self.app.flash_files]