From ac05343a1023874243ee9fdd490c21c42a737157 Mon Sep 17 00:00:00 2001 From: Patrice Peterson Date: Wed, 19 Aug 2020 18:17:08 +0200 Subject: Add docs for most vim.lsp methods Most of the lsp.log will be addressed in a separate PR. --- scripts/gen_vimdoc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/gen_vimdoc.py') diff --git a/scripts/gen_vimdoc.py b/scripts/gen_vimdoc.py index a61690e99f..f2f003033e 100755 --- a/scripts/gen_vimdoc.py +++ b/scripts/gen_vimdoc.py @@ -960,7 +960,11 @@ def main(config): i = 0 for filename in CONFIG[target]['section_order']: - title, helptag, section_doc = sections.pop(filename) + try: + title, helptag, section_doc = sections.pop(filename) + except KeyError: + print("Warning:", filename, "has empty docs, skipping") + continue i += 1 if filename not in CONFIG[target]['append_only']: docs += sep -- cgit