Ver código fonte

[notebook] Avoid deprecation warning about BaseException.message

Romain Rigaux 10 anos atrás
pai
commit
2db8a2c

+ 4 - 0
desktop/conf.dist/hue.ini

@@ -573,6 +573,10 @@
       name=Text
       interface=text
 
+    [[[markdown]]]
+      name=Markdown
+      interface=text
+
     # [[[sparksql]]]
     #   name=SparkSql
     #   interface=hiveserver2

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/jdbc.py

@@ -154,7 +154,7 @@ class JdbcApi(Api):
     except Exception, e:
       LOG.warn('Autocomplete data fetching error: %s' % e)
       response['code'] = -1
-      response['error'] = e.message
+      response['error'] = str(e)
 
     return response