flake/prefetch: Fix unconditional truthy string causes always-True

This commit is contained in:
Jörg Thalheim
2025-08-25 15:53:25 +02:00
parent b38b10c9a6
commit cbf9678534

View File

@@ -881,7 +881,7 @@ class Flake:
in str(e)
):
raise FlakeDoesNotExistError(self.identifier) from e
if "error: could not find a flake.nix file":
if "error: could not find a flake.nix file" in str(e):
raise FlakeInvalidError(self.identifier) from e
raise