flake/prefetch: Fix unconditional truthy string causes always-True
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user