Skip to content

Commit

Permalink
fix: infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Feb 12, 2025
1 parent 17e51da commit 0543bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autonomy/cli/deploy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2022-2024 Valory AG
# Copyright 2022-2025 Valory AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -67,7 +67,7 @@
def _validate_packages_path(path: Optional[Path] = None) -> Path:
"""Find packages dir for development mode."""
path = Path(path or Path.cwd()).resolve()
while path != path.root:
while path != Path(path.root):
if path.name == "packages" and (path / "packages.json").exists():
return path
path = path.parent
Expand Down

0 comments on commit 0543bea

Please sign in to comment.