[sqlalchemy] Fix check_status for saved queries not having result section in snippet
@@ -317,7 +317,7 @@ class SqlAlchemyApi(Api):
@query_error_handler
def check_status(self, notebook, snippet):
- guid = snippet['result']['handle']['guid']
+ guid = snippet.get('result', {}).get('handle', {}).get('guid')
connection = CONNECTIONS.get(guid)
response = {'status': 'canceled'}
