Fix errors with unwanted new app folder

Replying 'no' or ENTER when asked for the creation of a missing app folder was not properly managed. It gives IOError on Mac and unwanted behaviour on Win
This commit is contained in:
Nico Zanferrari
2020-04-26 22:14:36 +02:00
committed by GitHub
parent ca8b5f6945
commit 97bb26d452

View File

@@ -248,6 +248,9 @@ def run(
if confirm.lower() in ('y', 'yes'):
os.mkdir(adir)
fileutils.create_app(adir)
else:
logging.warn('application folder does not exist and has not been created as requested')
return
if force_migrate:
c = 'appadmin' # Load all models (hack already used for appadmin controller)