Skip to content

Commit

Permalink
Initialize parameters to empti dict in send method (#19)
Browse files Browse the repository at this point in the history
Until now this parameter could be believed as not required but it is in the code.

Signed-off-by: Patrick ZAJDA <[email protected]>
  • Loading branch information
Nardol authored Nov 22, 2022
1 parent f51972c commit 67838c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysmsboxnet/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def __smsbox_request(self, uri: str, parameters: dict) -> str:
f"reached while sending the SMS"
) from exception

async def send(self, dest: str, msg: str, mode: str, parameters: dict) -> int:
async def send(self, dest: str, msg: str, mode: str, parameters: dict = []) -> int:
"""Send a SMS."""
postData = {
"dest": dest,
Expand Down

0 comments on commit 67838c7

Please sign in to comment.