Bug 1785139 - linting fixup for vendor_manifest. r=lint-fix CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D155109
This commit is contained in:
Tom Ritter 2022-08-19 19:49:26 +00:00
parent ee45833aff
commit 05eb26435b

View File

@ -139,7 +139,7 @@ class VendorManifest(MozbuildObject):
cargo_file = os.path.join(os.path.dirname(self.yaml_file), "Cargo.toml")
try:
_replace_in_file(cargo_file, old_revision, new_revision)
except:
except Exception:
# If we can't find it the first time, try again with a short hash
_replace_in_file(cargo_file, old_revision[:8], new_revision)