Skip to content

Commit 67cb48a

Browse files
author
dherrada
committed
Added another except
1 parent 58b07ec commit 67cb48a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/extract_pyi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def convert_folder(top_level, stub_directory):
7070
except astroid.exceptions.AstroidSyntaxError as e:
7171
e = e.__cause__
7272
traceback.print_exception(type(e), e, e.__traceback__)
73+
except KeyError:
74+
print("Function does not have a key: Name")
7375
print()
7476
return ok, total
7577

0 commit comments

Comments
 (0)