diff --git a/notion_client/helpers.py b/notion_client/helpers.py index 568df1bf..4b7c12f7 100644 --- a/notion_client/helpers.py +++ b/notion_client/helpers.py @@ -6,7 +6,7 @@ def pick(base: Dict[Any, Any], *keys: str) -> Dict[Any, Any]: """Return a dict composed of key value pairs for keys passed as args.""" - return {key: base[key] for key in keys if key in base} + return {key: base[key] for key in keys if key in base and base[key] is not None} def get_url(object_id: str) -> str: