Skip to content

Commit 1409ee2

Browse files
authored
Merge pull request #3617 from mrmundt/performance-driver
Hotfix: Don't require __version__ for performance driver
2 parents 40a7836 + 3c557ee commit 1409ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/performance/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def getProjectInfo(project):
130130
diffs = os.popen('git diff-index --name-only HEAD').read()
131131
diffs = diffs.strip().split()
132132
branch = os.popen('git symbolic-ref -q --short HEAD').read().strip()
133-
version = _module.__version__
133+
version = getattr(_module, "__version__", "unknown")
134134
finally:
135135
os.chdir(cwd)
136136
return {'branch': branch, 'sha': sha, 'diffs': diffs, 'version': version}

0 commit comments

Comments
 (0)