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:
parent
1976ddb0cf
commit
2e7c9ef38b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user