File tree Expand file tree Collapse file tree
onedrive_personal_sdk/clients Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ async def download_drive_item(
8585
8686 async def update_drive_item (
8787 self , path_or_id : str , data : ItemUpdate
88- ) -> File | Folder | None :
88+ ) -> File | Folder :
8989 """Update items in a drive."""
9090 response = await self ._request (
9191 HttpMethod .PATCH ,
9292 f"{ GRAPH_BASE_URL } /me/drive/items/{ path_or_id } " ,
9393 json = data .to_dict (),
9494 )
9595 if response .status == 204 :
96- return None
96+ raise OneDriveException ( "Item update had no effect" )
9797 json = await response .json ()
9898 return self ._dict_to_item (json )
9999
Original file line number Diff line number Diff line change 11[project ]
22name = " onedrive-personal-sdk"
3- version = " 0.0.15 "
3+ version = " 0.0.16 "
44license = {text = " MIT" }
55description = " A package to interact with the Microsoft Graph API for personal OneDrives."
66readme = " README.md"
You can’t perform that action at this time.
0 commit comments