From 235340a24b0522ffee93cfbf50a87fae5b983d70 Mon Sep 17 00:00:00 2001 From: matt-o-how <48453825+matt-o-how@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:13:19 +0000 Subject: [PATCH] Prevent None version in __init__.py (#20453) * prevent None version * Fix comparison of __version__ to None --- chia/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chia/__init__.py b/chia/__init__.py index 4210ee7e68..382cdc8efe 100644 --- a/chia/__init__.py +++ b/chia/__init__.py @@ -10,6 +10,9 @@ try: except (PackageNotFoundError, KeyError): __version__ = "unknown" +if __version__ is None: + __version__ = "unknown" + try: assert False except AssertionError: