Canaille version check fix

This commit is contained in:
Éloi Rivard 2020-11-16 15:45:02 +01:00
parent b7e73b80cb
commit bf7b586279

View file

@ -39,7 +39,10 @@ def index():
@bp.route("/about")
def about():
version = pkg_resources.get_distribution("canaille").version
try:
version = pkg_resources.get_distribution("canaille").version
except pkg_resources.DistributionNotFound:
version = "git"
return render_template("about.html", version=version)