Tools: uploader.py squelch warning when not able to find hwdefs

This commit is contained in:
Peter Barker 2020-08-14 18:15:22 +10:00 committed by Peter Barker
parent 82dd7ece6c
commit 1b481b6e6a
1 changed files with 2 additions and 0 deletions

View File

@ -704,6 +704,8 @@ class uploader(object):
if adir is None: if adir is None:
continue continue
filepath = os.path.join(hwdef_dir, adir, "hwdef.dat") filepath = os.path.join(hwdef_dir, adir, "hwdef.dat")
if not os.path.exists(filepath):
continue
fh = open(filepath) fh = open(filepath)
if fh is None: if fh is None:
# print("Failed to open (%s)" % filepath) # print("Failed to open (%s)" % filepath)