From 67cb48acbf46b8f9508a6493578e2895c2b75463 Mon Sep 17 00:00:00 2001 From: dherrada <=> Date: Thu, 21 May 2020 18:21:32 -0400 Subject: Added another except --- tools/extract_pyi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/extract_pyi.py b/tools/extract_pyi.py index b61e86e4b..f0c45dab6 100644 --- a/tools/extract_pyi.py +++ b/tools/extract_pyi.py @@ -70,6 +70,8 @@ def convert_folder(top_level, stub_directory): except astroid.exceptions.AstroidSyntaxError as e: e = e.__cause__ traceback.print_exception(type(e), e, e.__traceback__) + except KeyError: + print("Function does not have a key: Name") print() return ok, total -- cgit v1.2.3