Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit a6a4780

Browse files
committed
update error handling in make.py for git-describe
1 parent 7426eaf commit a6a4780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def build_qt_files():
353353
tag = subprocess.run(['git', 'describe', '--exact-match'], check=True, stderr=subprocess.PIPE,
354354
stdout=subprocess.PIPE).stdout.decode('utf-8').strip()
355355
except subprocess.CalledProcessError as e:
356-
if b'no tag exactly matches' in e.stderr:
356+
if b'no tag exactly matches' in e.stderr or b'No names found' in e.stderr:
357357
tag = 'pre-' + rev_sha
358358
else:
359359
raise SystemExit('Failed to fetch tag\n' + e.stderr.decode('utf-8'))

0 commit comments

Comments
 (0)