Fix mil_color_hex branch in /branding
This commit is contained in:
parent
dc772220cb
commit
27a45bd2c5
@ -1652,11 +1652,11 @@ class Players(commands.Cog):
|
||||
await db_patch('teams', object_id=team['id'], params=[('thumbnail', team_image_url)])
|
||||
if mil_color_hex is not None:
|
||||
try:
|
||||
await db_patch('teams', object_id=mil_team['id'], params=[('color', color_hex)])
|
||||
await db_patch('teams', object_id=mil_team['id'], params=[('color', mil_color_hex)])
|
||||
show_mil = True
|
||||
except Exception as e:
|
||||
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')
|
||||
logging.info(f'Error setting {team["sname"]} color to {mil_color_hex}')
|
||||
errors.append(f'- Error setting {team["sname"]} color to {mil_color_hex}:\n{e}\n\n')
|
||||
if mil_team_image_url is not None:
|
||||
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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user