[FIX] mail_broker_whatsapp: pre-commit changes

pull/1305/head
Enric Tobella 2022-11-30 11:24:35 +01:00 committed by Enric Tobella
parent ed3e6ebee6
commit c6d80eaa7e
1 changed files with 2 additions and 4 deletions

View File

@ -109,10 +109,8 @@ class MailBrokerWhatsappService(Component):
image_id = message.get(key).get("id")
if image_id:
image_info_request = requests.get(
"https://graph.facebook.com/v%s/%s" % (
self.collection.whatsapp_version,
image_id,
),
"https://graph.facebook.com/v%s/%s"
% (self.collection.whatsapp_version, image_id,),
headers={
"Authorization": "Bearer %s"
% self.broker_id.token,