From 4e4c551da214227b7c4a7e19c8d56120c34e0cfb Mon Sep 17 00:00:00 2001 From: -LAN- Date: Mon, 11 Nov 2024 17:52:23 +0800 Subject: [PATCH] chore(app): add warning for unsupported Python 3.10 in future versions --- api/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/app.py b/api/app.py index 60cd622ef4d0a8..ead60e98d7dcc0 100644 --- a/api/app.py +++ b/api/app.py @@ -1,4 +1,5 @@ import os +import sys from configs import dify_config @@ -29,6 +30,9 @@ # DO NOT REMOVE ABOVE +if sys.version_info[:2] == (3, 10): + print("Warning: Python 3.10 will not be supported in the next version.") + warnings.simplefilter("ignore", ResourceWarning)