mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
Args might not be always strings
This commit is contained in:
+1
-1
@@ -275,7 +275,7 @@ class Api:
|
||||
|
||||
def sanitize_args(self, args: list):
|
||||
for idx in range(0, len(args)):
|
||||
if len(args[idx]) >= 1000:
|
||||
if isinstance(args[idx], str) and len(args[idx]) >= 1000:
|
||||
args[idx] = f"<str {len(args[idx])}>"
|
||||
|
||||
def sanitize_img_gen_request(self, request, img_gen_type: str):
|
||||
|
||||
Reference in New Issue
Block a user