Explorar o código

HUE-8775 [editor] Workaround to make interface optional until new catalog commit

Romain Rigaux %!s(int64=6) %!d(string=hai) anos
pai
achega
e4ebeb7f91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/notebook/src/notebook/api.py

+ 1 - 1
desktop/libs/notebook/src/notebook/api.py

@@ -129,7 +129,7 @@ def _execute_notebook(request, notebook, snippet):
         notebook = Notebook(document=history).get_data()
 
       interpreter = get_api(request, snippet)
-      if snippet['interface'] == 'sqlalchemy':
+      if snippet.get('interface') == 'sqlalchemy':
         interpreter.options['session'] = session
 
       response['handle'] = interpreter.execute(notebook, snippet)