Fix /branding mil bug

This commit is contained in:
Cal Corum 2023-02-26 18:13:27 -06:00
parent 8bc08a1248
commit 095d290226

View File

@ -2208,7 +2208,7 @@ class Players(commands.Cog):
logging.info(f'Error setting {team["sname"]} color to {color_hex}')
errors.append(f'- Error setting {team["sname"]} color to {color_hex}:\n{e}\n\n')
if mil_team_image_url is not None:
if requests.get(team_image_url, timeout=0.5).status_code != 200:
if requests.get(mil_team_image_url, timeout=0.5).status_code != 200:
errors.append(f'- I wasn\'t able to pull that image. Was it a public URL?\n\n')
else:
await patch_team(mil_team, thumbnail=mil_team_image_url)