浏览代码

HUE-8737 [py3] Remove check for beeswax module as invalid syntax

And beeswax is never blacklisted.
Romain 6 年之前
父节点
当前提交
f4f55b4887
共有 1 个文件被更改,包括 2 次插入10 次删除
  1. 2 10
      desktop/core/src/desktop/templates/common_notebook_ko_components.mako

+ 2 - 10
desktop/core/src/desktop/templates/common_notebook_ko_components.mako

@@ -21,19 +21,11 @@ from django.utils.translation import ugettext as _
 from desktop import conf
 from desktop import conf
 from desktop.lib.i18n import smart_unicode
 from desktop.lib.i18n import smart_unicode
 from desktop.views import _ko
 from desktop.views import _ko
+from beeswax.conf import DOWNLOAD_ROW_LIMIT, DOWNLOAD_BYTES_LIMIT
 from notebook.conf import ENABLE_SQL_INDEXER
 from notebook.conf import ENABLE_SQL_INDEXER
-
-
-LOG = logging.getLogger(__name__)
-
-try:
-  from beeswax.conf import DOWNLOAD_ROW_LIMIT, DOWNLOAD_BYTES_LIMIT
-except ImportError, e:
-  LOG.warn("Hive app is not enabled")
-  DOWNLOAD_ROW_LIMIT = None
-  DOWNLOAD_BYTES_LIMIT = None
 %>
 %>
 
 
+
 <%def name="addSnippetMenu()">
 <%def name="addSnippetMenu()">
   <script type="text/html" id="add-snippet-menu-template">
   <script type="text/html" id="add-snippet-menu-template">
     <div class="add-snippet-button" style="position:relative; width:65px; text-align: center;">
     <div class="add-snippet-button" style="position:relative; width:65px; text-align: center;">