]> git.lizzy.rs Git - nhentai.git/blobdiff - nhentai/cmdline.py
Fix
[nhentai.git] / 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))