Skip to content

Commit 53ed970

Browse files
committed
Handle rm repo in external paths, fix test failure
1 parent 8c58228 commit 53ed970

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlc/action.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def is_curdir_inside_path(base_path):
106106
# Iterate through the list of repository paths
107107
for repo_path in repo_paths:
108108
if not os.path.exists(repo_path):
109-
logger.warning(f"""Warning: {repo_path} not found. Considering it as a corrupt entry and deleting automatically...""")
110-
logger.warning(f"Deleting the {meta_yaml_path} entry from repos.json")
109+
logger.warning(f"""Warning: {repo_path} not found. Considering it as a corrupt entry and deleting from repos.json...""")
111110
from .repo_action import rm_repo
112111
res = rm_repo(repo_path, os.path.join(self.repos_path, 'repos.json'), True)
113112

0 commit comments

Comments
 (0)