Allow conf.py that lacks extensions config

This commit is contained in:
Jeff Forcier 2018-06-20 13:20:47 -07:00
parent 13f8e290de
commit 43133ae3a3

View file

@ -297,7 +297,7 @@ def make_app(**kwargs):
# Initialize extensions (the internal call to this happens at init time,
# which of course had no valid config yet here...)
if load_extensions:
for extension in real_conf['extensions']:
for extension in real_conf.get('extensions', []):
# But don't set up ourselves again, that causes errors
if extension == 'releases':
continue