Skip to content

Commit ec9815d

Browse files
committed
fix(PLA-3204): PR feedback, remove try catch so if it's failing for different reason that the check itself will stop processing
1 parent 603138c commit ec9815d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

main/githooks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,7 @@ def _conventional_commits_enabled():
902902
903903
Opt-in is signalled by a `.conventional-commits` file at the repo root.
904904
'''
905-
try:
906-
repo_root = _get_output(['git', 'rev-parse', '--show-toplevel']).strip()
907-
except subprocess.CalledProcessError:
908-
return False
905+
repo_root = _get_output(['git', 'rev-parse', '--show-toplevel']).strip()
909906
return (Path(repo_root) / '.conventional-commits').is_file()
910907

911908

0 commit comments

Comments
 (0)