Merge pull request #1317 from ogmaresca/fix-metadata-SyntaxWarning

Fix SyntaxWarning on startup
This commit is contained in:
cmdr2 2023-05-29 10:15:29 +05:30 committed by GitHub
commit 9be48b3fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,7 @@ def get_printable_request(req: GenerateImageRequest, task_data: TaskData):
del metadata["hypernetwork_strength"] del metadata["hypernetwork_strength"]
if task_data.use_lora_model is None and "lora_alpha" in metadata: if task_data.use_lora_model is None and "lora_alpha" in metadata:
del metadata["lora_alpha"] del metadata["lora_alpha"]
if task_data.use_upscale is not "latent_upscaler" and "latent_upscaler_steps" in metadata: if task_data.use_upscale != "latent_upscaler" and "latent_upscaler_steps" in metadata:
del metadata["latent_upscaler_steps"] del metadata["latent_upscaler_steps"]
app_config = app.getConfig() app_config = app.getConfig()