We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40a7836 + 3c557ee commit 1409ee2Copy full SHA for 1409ee2
scripts/performance/main.py
@@ -130,7 +130,7 @@ def getProjectInfo(project):
130
diffs = os.popen('git diff-index --name-only HEAD').read()
131
diffs = diffs.strip().split()
132
branch = os.popen('git symbolic-ref -q --short HEAD').read().strip()
133
- version = _module.__version__
+ version = getattr(_module, "__version__", "unknown")
134
finally:
135
os.chdir(cwd)
136
return {'branch': branch, 'sha': sha, 'diffs': diffs, 'version': version}
0 commit comments