[black] Reformat to use 88 line lengths
This commit is contained in:
@ -85,9 +85,7 @@ def get_ibu_from_soup(soup) -> Optional[int]:
|
||||
def get_rating_from_soup(soup) -> str:
|
||||
rating = ""
|
||||
try:
|
||||
rating = float(
|
||||
soup.find(class_="num").get_text().strip("(").strip(")")
|
||||
)
|
||||
rating = float(soup.find(class_="num").get_text().strip("(").strip(")"))
|
||||
except AttributeError:
|
||||
rating = None
|
||||
except ValueError:
|
||||
@ -124,9 +122,7 @@ def get_beer_from_untappd_id(untappd_id: str) -> dict:
|
||||
beer_dict = {"untappd_id": untappd_id}
|
||||
|
||||
if response.status_code != 200:
|
||||
logger.warn(
|
||||
"Bad response from untappd.com", extra={"response": response}
|
||||
)
|
||||
logger.warn("Bad response from untappd.com", extra={"response": response})
|
||||
return beer_dict
|
||||
|
||||
soup = BeautifulSoup(response.text, "html.parser")
|
||||
|
||||
Reference in New Issue
Block a user