提交 1f6f7cd3 编写于 作者: N nicolargo

Correct issue if args.client is None (related to issue #996)

上级 0477e6e6
......@@ -277,7 +277,8 @@ Examples of use:
else:
args.port = self.server_port
# Port in the -c URI #996
args.client, args.port = (x if x else y for (x, y) in zip(args.client.partition(':')[::2], (args.client, args.port)))
if args.client is not None:
args.client, args.port = (x if x else y for (x, y) in zip(args.client.partition(':')[::2], (args.client, args.port)))
# Autodiscover
if args.disable_autodiscover:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册