Skip to content

Commit 7df4405

Browse files
authored
[AIRFLOW-520] Fix Version Info in Flask UI (#4072)
1 parent 14f9b55 commit 7df4405

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)