mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	Merge pull request #169 from Nontre12/master
Fix running without parameters
This commit is contained in:
		@@ -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))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user