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

This commit is contained in:
Angus Gratton 2019-12-11 17:38:19 +11:00 committed by Angus Gratton
parent 9fa87f04da
commit b20eaf3306

View File

@ -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]