Fix bad argument name, use kwargs

Argument should be `_post_data` and we only allow kwargs in `ApiRequest.__call__`.
This commit is contained in:
jo 2021-09-13 21:42:37 +02:00
parent 56f5a84146
commit 23f8617409
1 changed files with 5 additions and 3 deletions

View File

@ -429,12 +429,14 @@ class AirtimeApiClient(object):
def notify_liquidsoap_status(self, msg, stream_id, time):
logger = self.logger
try:
post_data = {"msg_post": msg}
# encoded_msg is no longer used server_side!!
encoded_msg = urllib.parse.quote("dummy")
self.services.update_liquidsoap_status.req(
post_data, msg=encoded_msg, stream_id=stream_id, boot_time=time
_post_data={"msg_post": msg},
msg=encoded_msg,
stream_id=stream_id,
boot_time=time,
).retry(5)
except Exception as e:
self.logger.exception(e)