safer str

This commit is contained in:
lvmin 2023-09-10 11:08:12 -07:00
parent 6d6437ab7d
commit fa3fdeb53c

View File

@ -4,6 +4,8 @@ from modules.path import fooocus_expansion_path
def safe_str(x):
for _ in range(16):
x = x.replace(' ', ' ')
return str(x).rstrip(",. \r\n")