From 047f14b9db4917060c663fdf7db16f50a02b0161 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sun, 19 Jun 2022 01:22:33 +0300 Subject: [PATCH] upload.py should not always fail (#8608) https://github.com/esp8266/Arduino/commit/07789808b941d556f8ac1bd482342561a0e37d12#r76344981 thx @jjsuwa-sys3175 --- tools/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upload.py b/tools/upload.py index 29819e537..aee6add8f 100755 --- a/tools/upload.py +++ b/tools/upload.py @@ -70,5 +70,5 @@ except esptool.FatalError as e: finally: if erase_file: os.remove(erase_file) - if sys.exc_info: + if any(sys.exc_info()): sys.exit(2)