Comparing nylas:main...dudegladiator:fix/drafts-multipart-tuple-unpacking · nylas/nylas-python
Commits on Feb 20, 2026
-
fix: properly unpack _execute() tuple in drafts.create() and drafts.u…
…pdate() for multipart requests When creating or updating a draft with attachments >= 3MB (multipart/form-data), _http_client._execute() returns a (json_response, headers) tuple. The multipart code paths in create() and update() assigned the entire tuple to a single variable instead of unpacking it, causing TypeError. Applied the same tuple-unpacking pattern already used in send() to both create() and update() multipart code paths. Fixes #454