mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-10-30 18:50:53 +00:00 
			
		
		
		
	Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag
This commit is contained in:
		
							parent
							
								
									c719fce40a
								
							
						
					
					
						commit
						15bddcbc39
					
				| @ -670,7 +670,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None | ||||
|                 col_str = str_temp.format(d[row][:31] + "…" if len(d[row]) > 32 else d[row]) | ||||
|                 col_left[col] = True | ||||
|             elif isinstance(d[row], datetime.datetime): | ||||
|                 col_str = f"{str(d[row]):<20}" | ||||
|                 col_str = f"{d[row]!s:<20}" | ||||
|                 col_left[col] = True | ||||
|             else: | ||||
|                 temp = "{:>%s}" % max(5, len(l) + 1, len(str(d[row])) + 1) | ||||
|  | ||||
| @ -537,7 +537,7 @@ def check_certificate(domain, ssl_certificate, ssl_private_key, warn_if_expiring | ||||
| 			with open(ssl_private_key, 'rb') as f: | ||||
| 				priv_key = load_pem(f.read()) | ||||
| 		except ValueError as e: | ||||
| 			return (f"The private key file {ssl_private_key} is not a private key file: {str(e)}", None) | ||||
| 			return (f"The private key file {ssl_private_key} is not a private key file: {e!s}", None) | ||||
| 
 | ||||
| 		if not isinstance(priv_key, RSAPrivateKey): | ||||
| 			return ("The private key file %s is not a private key file." % ssl_private_key, None) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user