mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-22 03:06:59 +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:
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user