1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

[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 2023-12-30 11:31:36 -05:00
parent 1976ddb0cf
commit 2e7c9ef38b
No known key found for this signature in database
GPG Key ID: 6A95067A0EF46336

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: