mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-29 17:38:26 +00:00
Crashing on empty groups
This commit is contained in:
parent
91ea307b66
commit
45c5a0f682
|
@ -78,7 +78,7 @@ def group(group_id):
|
|||
|
||||
# Check contrast for the first image in the group for the banner
|
||||
text_colour = 'rgb(var(--fg-black))'
|
||||
if images[0]:
|
||||
if images:
|
||||
text_colour = contrast.contrast(images[0].image_colours[0],
|
||||
'rgb(var(--fg-black))',
|
||||
'rgb(var(--fg-white))')
|
||||
|
|
Loading…
Reference in a new issue