You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using worksheet.add_protected_range(name="A1:B2", warning_only=True), I'm getting the TypeError: Worksheet.add_protected_range() missing 1 required positional argument: 'editor_users_emails'
However, adding editor_users_emails triggers a 400 Bad Request, as the library seems to always require it:
worksheet.add_protected_range(name="A1:B2", warning_only=True, editor_users_emails="me@example.com")
--- (and the error is)
ProtectedRange is warningOnly. Editors cannot be set on it.
I think the gspread library must omit the editor node altogether from the request if warning_only=True.
The text was updated successfully, but these errors were encountered:
Hi, I wonder if there's a bug.
When using
worksheet.add_protected_range(name="A1:B2", warning_only=True)
, I'm getting theTypeError: Worksheet.add_protected_range() missing 1 required positional argument: 'editor_users_emails'
However, adding
editor_users_emails
triggers a 400 Bad Request, as the library seems to always require it:I think the gspread library must omit the editor node altogether from the request if
warning_only=True
.The text was updated successfully, but these errors were encountered: