From b20eaf3306042a0a4be4f78d71fb6769c0a6c162 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 11 Dec 2019 17:38:19 +1100 Subject: [PATCH] ttfw: Fix exception message when an error occurs finding files to flash --- tools/ci/python_packages/ttfw_idf/IDFDUT.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ci/python_packages/ttfw_idf/IDFDUT.py b/tools/ci/python_packages/ttfw_idf/IDFDUT.py index 874d89273f..c5e0608d5b 100644 --- a/tools/ci/python_packages/ttfw_idf/IDFDUT.py +++ b/tools/ci/python_packages/ttfw_idf/IDFDUT.py @@ -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]