forked from ScoDoc/ScoDoc
Ignore CAS config during fresh database upgrade
This commit is contained in:
parent
5722ed6f93
commit
6876f2e902
@ -383,8 +383,12 @@ def create_app(config_class=DevConfig):
|
||||
from app.auth.cas import set_cas_configuration
|
||||
|
||||
with app.app_context():
|
||||
try:
|
||||
set_cas_configuration(app)
|
||||
|
||||
except sqlalchemy.exc.ProgrammingError:
|
||||
# Si la base n'a pas été upgradée (arrive durrant l'install)
|
||||
# il se peut que la table scodoc_site_config n'existe pas encore.
|
||||
pass
|
||||
return app
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user