[2125] Updates Exception Check

We removed a general exception check and didn't cover all edge cases here. Add back the proper edge case.
This commit is contained in:
David Sangrey committed 2023-12-30 11:31:36 -05:00
1 parent 1976ddb0cf
commit 2e7c9ef38b
1 file changed
+1 -1
+1 -1
View File
@@ -99,7 +99,7 @@ def git_shorthash_from_head() -> str:
)
out, err = git_cmd.communicate()
except subprocess.CalledProcessError as e:
except (subprocess.CalledProcessError, FileNotFoundError) as e:
logger.info(f"Couldn't run git command for short hash: {e!r}")
else: