From 1b481b6e6a2c36810821247a2853e00b215db7fc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Aug 2020 18:15:22 +1000 Subject: [PATCH] Tools: uploader.py squelch warning when not able to find hwdefs --- Tools/scripts/uploader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/scripts/uploader.py b/Tools/scripts/uploader.py index 6bd08c7f54..992a010dfc 100755 --- a/Tools/scripts/uploader.py +++ b/Tools/scripts/uploader.py @@ -704,6 +704,8 @@ class uploader(object): if adir is None: continue filepath = os.path.join(hwdef_dir, adir, "hwdef.dat") + if not os.path.exists(filepath): + continue fh = open(filepath) if fh is None: # print("Failed to open (%s)" % filepath)