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 250e956 commit d59b3bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 d59b3bd

Please sign in to comment.