From 6d43e0422aa82a73ae9ce233d14cfe960e9df90b Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 21 Jul 2019 17:45:21 +0200 Subject: [PATCH] Fix for non found flask_login version (#968) --- cps/about.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cps/about.py b/cps/about.py index 451b6411..7c61dbd0 100644 --- a/cps/about.py +++ b/cps/about.py @@ -31,7 +31,10 @@ from flask_babel import gettext as _ from . import db, converter, uploader, server, isoLanguages from .web import render_title_template - +try: + from flask_login import __version__ as flask_loginVersion +except ImportError: + from flask_login.__about__ import __version__ as flask_loginVersion about = flask.Blueprint('about', __name__) @@ -40,7 +43,7 @@ _VERSIONS = OrderedDict( Python=sys.version, WebServer=server.VERSION, Flask=flask.__version__, - Flask_Login=flask_login.__version__, + Flask_Login=flask_loginVersion, Flask_Principal=flask_principal.__version__, Werkzeug=werkzeug.__version__, Babel=babel.__version__,