diff --git a/pkgs/clan-cli/clan_cli/flake.py b/pkgs/clan-cli/clan_cli/flake.py index 6dbb9910f..e23d012b4 100644 --- a/pkgs/clan-cli/clan_cli/flake.py +++ b/pkgs/clan-cli/clan_cli/flake.py @@ -246,6 +246,12 @@ class FlakeCacheEntry: if self.value != value: msg = "value mismatch in cache, something is fishy" raise TypeError(msg) + + elif value is None: + if self.value is not None: + msg = "value mismatch in cache, something is fishy" + raise TypeError(msg) + else: msg = f"Cannot insert value of type {type(value)} into cache" raise TypeError(msg)