mirror of https://github.com/ArduPilot/ardupilot
Tools: uploader.py squelch warning when not able to find hwdefs
This commit is contained in:
parent
82dd7ece6c
commit
1b481b6e6a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue