From 97bb26d452ce7d461bdf56274bb17a67771c09c6 Mon Sep 17 00:00:00 2001 From: Nico Zanferrari Date: Sun, 26 Apr 2020 22:14:36 +0200 Subject: [PATCH] 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 --- gluon/shell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gluon/shell.py b/gluon/shell.py index 92b6334b..276473f9 100644 --- a/gluon/shell.py +++ b/gluon/shell.py @@ -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)