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

Commit

Permalink
update error handling in make.py for git-describe
Browse files Browse the repository at this point in the history
  • Loading branch information
melvyn2 committed Nov 3, 2019
1 parent 7426eaf commit a6a4780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def build_qt_files():
tag = subprocess.run(['git', 'describe', '--exact-match'], check=True, stderr=subprocess.PIPE,
stdout=subprocess.PIPE).stdout.decode('utf-8').strip()
except subprocess.CalledProcessError as e:
if b'no tag exactly matches' in e.stderr:
if b'no tag exactly matches' in e.stderr or b'No names found' in e.stderr:
tag = 'pre-' + rev_sha
else:
raise SystemExit('Failed to fetch tag\n' + e.stderr.decode('utf-8'))
Expand Down

0 comments on commit a6a4780

Please sign in to comment.