Skip to content

Commit ddfad73

Browse files
committed
WIP handle auto_accept boolean in receive_invitation similarly by:
* Making it a Python boolean in the Python function and * translating it to JSOn boolean if it is not None
1 parent a28e523 commit ddfad73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aries_cloudcontroller/controllers/connections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ async def receive_invitation(
103103
params = {}
104104
if alias:
105105
params["alias"] = alias
106-
if auto_accept:
106+
if auto_accept in [True, False]:
107+
auto_accept = str(auto_accept).lower()
107108
params["auto_accept"] = auto_accept
108109

109110
response = await self.admin_POST(

0 commit comments

Comments
 (0)