diff --git a/config/__init__.py b/config/__init__.py index 33d531e9..d3ba3d3d 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -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: