From e5ad2e3433bdcfa3a367ef04cfa9efb0c3324773 Mon Sep 17 00:00:00 2001 From: liam-strand Date: Fri, 8 Jul 2022 16:56:28 -0400 Subject: [PATCH] appease pylint --- mfdls/medford_validation.py | 1 - mfdls/server.py | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/mfdls/medford_validation.py b/mfdls/medford_validation.py index 126fc3f..aa317e0 100644 --- a/mfdls/medford_validation.py +++ b/mfdls/medford_validation.py @@ -78,7 +78,6 @@ def validate_data( for error in error_list: diagnostics.append(_parse_medford_error(error)) - return ([], diagnostics) diff --git a/mfdls/server.py b/mfdls/server.py index 22a519a..3719251 100644 --- a/mfdls/server.py +++ b/mfdls/server.py @@ -25,7 +25,6 @@ DidChangeTextDocumentParams, DidOpenTextDocumentParams, DidSaveTextDocumentParams, - MessageType, ) from pygls.server import LanguageServer @@ -75,10 +74,7 @@ def _generate_completion_list() -> CompletionList: @medford_server.feature(TEXT_DOCUMENT_DID_CHANGE) def did_change(ls: MEDFORDLanguageServer, params: DidChangeTextDocumentParams): """Text document did change notification.""" - try: - _generate_syntactic_diagnostics(ls, params) - except Exception as e: - ls.show_message(e, MessageType.Error) + _generate_syntactic_diagnostics(ls, params) @medford_server.feature(TEXT_DOCUMENT_DID_OPEN)