1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Enforce all pyflake lint rules (#6033)

* Enforce F821 undefined-name

* Enforce all pyflake lint rules
This commit is contained in:
Chenlei Hu
2024-12-12 16:29:37 -08:00
committed by GitHub
parent 6c0377f43e
commit 563291ee51
9 changed files with 12 additions and 18 deletions

View File

@@ -584,7 +584,7 @@ class PromptServer():
return web.json_response(self.prompt_queue.get_history(max_items=max_items))
@routes.get("/history/{prompt_id}")
async def get_history(request):
async def get_history_prompt_id(request):
prompt_id = request.match_info.get("prompt_id", None)
return web.json_response(self.prompt_queue.get_history(prompt_id=prompt_id))
@@ -831,7 +831,7 @@ class PromptServer():
try:
json_data = handler(json_data)
except Exception:
logging.warning(f"[ERROR] An error occurred during the on_prompt_handler processing")
logging.warning("[ERROR] An error occurred during the on_prompt_handler processing")
logging.warning(traceback.format_exc())
return json_data