From e2e8bbabf1a23a4b73fb0188e1b22e4578695598 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 12 Jul 2023 16:51:09 +1000 Subject: [PATCH] Tools: don't fail if feature extraction failed --- Tools/scripts/build_binaries.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/build_binaries.py b/Tools/scripts/build_binaries.py index 7607b27945..cd485156c2 100755 --- a/Tools/scripts/build_binaries.py +++ b/Tools/scripts/build_binaries.py @@ -538,8 +538,9 @@ is bob we will attempt to checkout bob-AVR''' self.mkpath(ddir) self.addfwversion(ddir, vehicle) features_filepath = os.path.join(ddir, "features.txt",) - self.progress("Writing (%s)" % features_filepath) - self.write_string_to_filepath(features_text, features_filepath) + if features_text is not None: + self.progress("Writing (%s)" % features_filepath) + self.write_string_to_filepath(features_text, features_filepath) self.progress("Copying %s to %s" % (path, ddir,)) shutil.copy(path, os.path.join(ddir, target_filename)) # the most recent build of every tag is kept around: