mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Fixed PLW0120 (useless-else-on-loop): else clause on loop without a break statement; remove the else and dedent its contents
				
					
				
			This commit is contained in:
		
							parent
							
								
									70aff052b6
								
							
						
					
					
						commit
						fda9b09562
					
				@ -178,7 +178,6 @@ def should_force_full(config, env):
 | 
				
			|||||||
				if dateutil.parser.parse(bak["date"]) + datetime.timedelta(days=config["min_age_in_days"]*10+1) < datetime.datetime.now(dateutil.tz.tzlocal()):
 | 
									if dateutil.parser.parse(bak["date"]) + datetime.timedelta(days=config["min_age_in_days"]*10+1) < datetime.datetime.now(dateutil.tz.tzlocal()):
 | 
				
			||||||
					return True
 | 
										return True
 | 
				
			||||||
			return False
 | 
								return False
 | 
				
			||||||
	else:
 | 
					 | 
				
			||||||
	# If we got here there are no (full) backups, so make one.
 | 
						# If we got here there are no (full) backups, so make one.
 | 
				
			||||||
	# (I love for/else blocks. Here it's just to show off.)
 | 
						# (I love for/else blocks. Here it's just to show off.)
 | 
				
			||||||
	return True
 | 
						return True
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user