Merge pull request #169 from Nontre12/master

Fix running without parameters
This commit is contained in:
Ricter Zheng 2020-10-11 03:48:39 +08:00 committed by GitHub
commit f2d22f8e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ def cmd_parser():
exit(0) exit(0)
# TODO: search without language # TODO: search without language
if args.proxy is not None: if args.proxy:
proxy_url = urlparse(args.proxy) proxy_url = urlparse(args.proxy)
if not args.proxy == '' and proxy_url.scheme not in ('http', 'https'): if not args.proxy == '' and proxy_url.scheme not in ('http', 'https'):
logger.error('Invalid protocol \'{0}\' of proxy, ignored'.format(proxy_url.scheme)) logger.error('Invalid protocol \'{0}\' of proxy, ignored'.format(proxy_url.scheme))