This commit is contained in:
Nontre12 2020-10-10 21:15:20 +02:00
parent 670d14c3f3
commit ea6089ff31

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))