mercredi 28 novembre 2018

Flask APP - ValueError: signal only works in main thread

I try to create a simple flask app:

from flask import Flask

app = Flask(__name__)

if __name__ == '__main__':
  app.run()

but when I add the debug:

FLASK_APP = run.py
FLASK_ENV = development
FLASK_DEBUG = 1

I got the following error:

ValueError: signal only works in main thread




Aucun commentaire:

Enregistrer un commentaire