From 99672aa700f855bcebb5d94f3e741ff5279387f5 Mon Sep 17 00:00:00 2001 From: Edan Schwartz Date: Tue, 17 Jan 2023 15:48:00 -0600 Subject: [PATCH] Log all exceptions Currently some exceptions cause a exit code 2, but without any relevant error message. --- tools/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upload.py b/tools/upload.py index aee6add8f1..760d4dbbef 100755 --- a/tools/upload.py +++ b/tools/upload.py @@ -65,7 +65,7 @@ try: esptool.main(cmdline) -except esptool.FatalError as e: +except Exception as e: sys.stderr.write('\nA fatal esptool.py error occurred: %s' % e) finally: if erase_file: