Skip to content

Commit 4b17842

Browse files
committed
[AIRFLOW-520] Fix Version Info in Flask UI
1 parent b156151 commit 4b17842

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airflow/www/views.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import markdown
3838
import nvd3
3939
import pendulum
40-
import pkg_resources
4140
import sqlalchemy as sqla
4241
from flask import (
4342
abort, jsonify, redirect, url_for, request, Markup, Response,
@@ -3052,7 +3051,7 @@ class VersionView(wwwutils.SuperUserMixin, BaseView):
30523051
def version(self):
30533052
# Look at the version from setup.py
30543053
try:
3055-
airflow_version = pkg_resources.require("apache-airflow")[0].version
3054+
airflow_version = airflow.__version__
30563055
except Exception as e:
30573056
airflow_version = None
30583057
logging.error(e)

0 commit comments

Comments
 (0)