mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
Prevent None version in __init__.py (#20453)
* prevent None version * Fix comparison of __version__ to None
This commit is contained in:
@@ -10,6 +10,9 @@ try:
|
||||
except (PackageNotFoundError, KeyError):
|
||||
__version__ = "unknown"
|
||||
|
||||
if __version__ is None:
|
||||
__version__ = "unknown"
|
||||
|
||||
try:
|
||||
assert False
|
||||
except AssertionError:
|
||||
|
||||
Reference in New Issue
Block a user