Skip to content

Commit 3ff7b6a

Browse files
committed
fix: handle none data in _recursive_extract
1 parent f64a0e3 commit 3ff7b6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/io/json/_normalize.py

+2
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ def _pull_records(js: dict[str, Any], spec: list | str) -> list:
490490
meta_keys = [sep.join(val) for val in _meta]
491491

492492
def _recursive_extract(data, path, seen_meta, level: int = 0) -> None:
493+
if data is None:
494+
return
493495
if isinstance(data, dict):
494496
data = [data]
495497
if len(path) > 1:

0 commit comments

Comments
 (0)