Skip to content

Commit d34abdb

Browse files
authored
Merge pull request #116 from roberthdevries/fix-bare-except-build-ffi
Use specific exception instead of bare except in build_ffi.py
2 parents e48fb07 + 0f61f5f commit d34abdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/build_ffi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def checkout_version(version):
133133
current = subprocess.check_output(
134134
["git", "describe", "--all", "--exact-match"]
135135
).strip().decode().split('/')[-1]
136-
except:
136+
except subprocess.CalledProcessError:
137137
pass
138138

139139
if current != version:

0 commit comments

Comments
 (0)