Skip to content

Commit 2f9dcb8

Browse files
fix: 直接使用 glm config 会出现 'running_result' 未定义的错误 (#32)
Re fix #32
1 parent 9ef106e commit 2f9dcb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

other-languages/en-US/glm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def main():
412412
print(f"{Fore.GREEN}{Fore.RESET} The current version is:\nGitHub Labels Manager v{Fore.BLUE}{version}{Fore.RESET}\nInstalled in: {Fore.BLUE}{script_path}{Fore.RESET}")
413413
else:
414414
print(f"{Fore.RED}{Fore.RESET} Missing configuration item.")
415-
return 1, running_result
415+
return 1, "cancel"
416416
elif args.command == 'clear':
417417
# 清除功能的实现
418418
running_result = formatting_url(args.repo_url)

程序脚本/glm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def main():
411411
print(f"{Fore.GREEN}{Fore.RESET} 当前使用的版本为:\nGitHub Labels Manager v{Fore.BLUE}{version}{Fore.RESET}\n安装在: {Fore.BLUE}{script_path}{Fore.RESET}")
412412
else:
413413
print(f"{Fore.RED}{Fore.RESET} 缺少配置项")
414-
return 1, running_result
414+
return 1, "cancel"
415415
elif args.command == 'clear':
416416
# 清除功能的实现
417417
running_result = formatting_url(args.repo_url)

0 commit comments

Comments
 (0)