Skip to content

Commit 6b9b3f2

Browse files
committed
update main file
1 parent 4acc8f0 commit 6b9b3f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlc/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1369,13 +1369,13 @@ def main():
13691369
if args.target_or_url.startswith("http"):
13701370
action = RepoAction()
13711371
res = action.pull(args)
1372-
if res["return"] > 0:
1372+
if res["return":1] > 0:
13731373
logger.error(res.get('error', f"Error in repo action: {res['error']}"))
13741374
else:
13751375
action = get_action(args.target_or_url)
13761376
if action and hasattr(action, 'pull'):
13771377
res = action.pull(args)
1378-
if res["return"] > 0:
1378+
if res["return":1] > 0:
13791379
logger.error(res.get('error', f"Error in repo action: {res['error']}"))
13801380
else:
13811381
logger.info(f"Error: '{args.target_or_url}' is not a valid target for pull.")

0 commit comments

Comments
 (0)