diff --git a/canaille/account.py b/canaille/account.py index 2ca04d24..f1bb7cae 100644 --- a/canaille/account.py +++ b/canaille/account.py @@ -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)