Caught a few errors.
This commit is contained in:
		
							parent
							
								
									08a5683906
								
							
						
					
					
						commit
						6e2bdb0c8d
					
				
					 1 changed files with 12 additions and 4 deletions
				
			
		
							
								
								
									
										16
									
								
								ASCIIsite.py
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								ASCIIsite.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -45,11 +45,19 @@ def parse_arguments():
 | 
			
		|||
    logging.info(f'outputting to {outFile.resolve()}')
 | 
			
		||||
    logging.debug(f'compress is {compress}')
 | 
			
		||||
 | 
			
		||||
    with open(args.exclude_file, 'r') as file:
 | 
			
		||||
        exclude=[glob.strip() for glob in file]
 | 
			
		||||
    try:
 | 
			
		||||
        with open(args.exclude_file, 'r') as file:
 | 
			
		||||
            exclude=[glob.strip() for glob in file]
 | 
			
		||||
 | 
			
		||||
    if args.exclude != None:
 | 
			
		||||
        exclude.extend(args.exclude)
 | 
			
		||||
        if args.exclude != None:
 | 
			
		||||
            exclude.extend(args.exclude)
 | 
			
		||||
    except Exception as e:
 | 
			
		||||
        print(str(e))
 | 
			
		||||
        exit()
 | 
			
		||||
 | 
			
		||||
    if args.inputDir.resolve().exists():
 | 
			
		||||
        print(f'Inputdir {args.inputDir.resolve()} does not exist!')
 | 
			
		||||
        exit()
 | 
			
		||||
 | 
			
		||||
    return args.inputDir.resolve(), outFile, compress, exclude
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue