Skip to content

Commit

Permalink
chore(app): add warning for unsupported Python 3.10 in future versions
Browse files Browse the repository at this point in the history
  • Loading branch information
laipz8200 committed Nov 11, 2024
1 parent 3c2cc95 commit 4e4c551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

from configs import dify_config

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 4e4c551

Please sign in to comment.