1 parent 56a4e58 commit 0bbf8c2Copy full SHA for 0bbf8c2
1 file changed
main.py
@@ -23,7 +23,7 @@ def init_config():
23
config.get("common", "course_list"),
24
int(config.get("common", "speed")))
25
else:
26
- return (args.username, args.password, args.list.split(","), int(args.speed))
+ return (args.username, args.password, args.list.split(",") if args.list else None, int(args.speed) if args.speed else 1)
27
28
29
if __name__ == '__main__':
0 commit comments