Tools: don't fail if feature extraction failed

This commit is contained in:
Peter Barker 2023-07-12 16:51:09 +10:00 committed by Peter Barker
parent aa0b119806
commit e2e8bbabf1

View File

@ -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: