Let it work without config.py, as we configure it through the test

This commit is contained in:
Ruben van Staveren 2022-03-10 11:53:31 +01:00
parent 975c3bb3f3
commit a8dbafd21e
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -31,7 +31,7 @@ def create_app(config=None):
if config is None:
# load the instance config, if it exists, when not testing
app.config.from_pyfile('config.py', silent=False)
app.config.from_pyfile('config.py', silent=True)
else:
# load the test config if passed in
app.config.from_pyfile(config, silent=True)