Tools: don't fail if feature extraction failed (beta/stable version)

This commit is contained in:
Willian Galvani 2023-07-14 13:41:35 -03:00 committed by Peter Barker
parent ec994957b3
commit 5013a1e979

View File

@ -551,8 +551,9 @@ is bob we will attempt to checkout bob-AVR'''
# exists as we re-use the "beta" directories
self.addfwversion(tdir, vehicle)
features_filepath = os.path.join(tdir, "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)
shutil.copy(path, os.path.join(tdir, target_filename))
except Exception as e:
self.print_exception_caught(e)