X Tutup
Skip to content

Commit 8f628bb

Browse files
committed
Catch correct exception
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 74ce964 commit 8f628bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
elif len(version_split) == 2:
4949
# format: version-release
5050
version = version_split[0]
51-
52-
except OSError:
51+
except subprocess.CalledProcessError:
5352
try:
5453
# get version from existing version file
5554
with open(version_file) as vf:

0 commit comments

Comments
 (0)
X Tutup