Skip to content

Commit 3f6e5f2

Browse files
committed
🎨 cast none body to empty object
1 parent 702da78 commit 3f6e5f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aries_cloudcontroller/api/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ async def settings_put(
3030
self, *, body: Optional[UpdateProfileSettings] = None
3131
) -> ProfileSettings:
3232
"""Update configurable settings associated with the profile."""
33+
if not body:
34+
body = UpdateProfileSettings()
3335
return await self.__settings_put(
3436
body=body,
3537
)

0 commit comments

Comments
 (0)