Update ready.py

This commit is contained in:
Lukas 2023-06-09 13:02:33 +02:00 committed by GitHub
parent d37cb6cda4
commit f932177ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def isInMainThread():
"""
if '--noreload' in sys.argv or "gunicorn" in os.environ.get("SERVER_SOFTWARE", ""):
return True
print("IS_IN_MAIN_THREAD", os.environ.get('RUN_MAIN', None) == 'true')
return True