Skip to content

Commit

Permalink
appease pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-strand committed Jul 8, 2022
1 parent 819b5e5 commit e5ad2e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion mfdls/medford_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def validate_data(
for error in error_list:
diagnostics.append(_parse_medford_error(error))


return ([], diagnostics)


Expand Down
6 changes: 1 addition & 5 deletions mfdls/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
DidChangeTextDocumentParams,
DidOpenTextDocumentParams,
DidSaveTextDocumentParams,
MessageType,
)
from pygls.server import LanguageServer

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e5ad2e3

Please sign in to comment.