forked from Github-Mirrors/canaille
Canaille version check fix
This commit is contained in:
parent
b7e73b80cb
commit
bf7b586279
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue