From 0e8ab0588f0c2c7713b024164ece38be6f7df084 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Fri, 8 Nov 2024 09:42:53 +0800 Subject: [PATCH] fix: (#10437 followup) fix conditions with DEBUG config (#10438) --- api/app.py | 2 +- api/app_factory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app.py b/api/app.py index 93774bd75d..60cd622ef4 100644 --- a/api/app.py +++ b/api/app.py @@ -2,7 +2,7 @@ import os from configs import dify_config -if dify_config.DEBUG: +if not dify_config.DEBUG: from gevent import monkey monkey.patch_all() diff --git a/api/app_factory.py b/api/app_factory.py index f53cf14f4b..60a584798b 100644 --- a/api/app_factory.py +++ b/api/app_factory.py @@ -2,7 +2,7 @@ import os from configs import dify_config -if dify_config.DEBUG: +if not dify_config.DEBUG: from gevent import monkey monkey.patch_all()