Skip to content

Commit e7f09b6

Browse files
committed
Fix crash in --version
$ python3 tinyprog --version Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "tinyprog/__main__.py", line 474, in <module> main() File "tinyprog/__main__.py", line 283, in main tinyprog.__version__, tinyprog.__full_version__)) AttributeError: module 'tinyprog' has no attribute '__version__'
1 parent fcd9830 commit e7f09b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programmer/tinyprog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
__version__ = get_distribution(__name__).version
1919
except DistributionNotFound:
2020
# package is not installed
21-
pass
21+
__version__ = "unknown"
2222

2323
try:
2424
from .full_version import __full_version__

0 commit comments

Comments
 (0)