From 9cce58625e7ece18763f554f3853a67a06f353bf Mon Sep 17 00:00:00 2001 From: samedamci Date: Thu, 16 Sep 2021 19:05:22 +0200 Subject: [PATCH] Format code --- mattebox/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mattebox/app.py b/mattebox/app.py index d15dae6..3333c56 100644 --- a/mattebox/app.py +++ b/mattebox/app.py @@ -22,14 +22,17 @@ class MatteBOX: def __get(self, endpoint: str, params: dict) -> dict: res = requests.get( - API + endpoint, params=params, cookies=self.cookies, headers={ + API + endpoint, + params=params, + cookies=self.cookies, + headers={ "X-NanguTv-Platform-Id": PLATFORM_ID, "X-NanguTv-Device-size": "normal", "X-NanguTv-Device-Name": security_values.device_name, "X-NanguTv-App-Version": security_values.app_version, "X-NanguTv-Device-density": security_values.device_density, "User-Agent": security_values.user_agent, - } + }, ) if res.status_code >= 400: raise requests.exceptions.BaseHTTPError(res.text)