]> git.lizzy.rs Git - nhentai.git/commitdiff
Fix
authorNontre12 <62849884+Nontre12@users.noreply.github.com>
Sat, 10 Oct 2020 19:15:20 +0000 (21:15 +0200)
committerNontre12 <62849884+Nontre12@users.noreply.github.com>
Sat, 10 Oct 2020 19:15:20 +0000 (21:15 +0200)
nhentai/cmdline.py

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