Skip to content

Commit 2671fba

Browse files
authored
Merge pull request #178 from nicoddemus/frozen-version
Always define __version__ even if get_distribution() fails
2 parents 3df72de + 44d1aa4 commit 2671fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_html/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
__version__ = get_distribution(__name__).version
66
except DistributionNotFound:
77
# package is not installed
8-
pass
8+
__version__ = 'unknown'
99

1010
__pypi_url__ = 'https://pypi.python.org/pypi/pytest-html'

0 commit comments

Comments
 (0)