Post getvars + fixed colors.py valid hex

This commit is contained in:
l_samenv
2024-09-04 12:56:35 +02:00
parent 9112b5db05
commit 35a02e8fa7
4 changed files with 50 additions and 8 deletions

View File

@ -104,7 +104,7 @@ class ColorMap(object):
if len(code) != 7:
return None
try:
int(code[1:]) # we have a valid hex color code
int(code[1:], 16) # we have a valid hex color code
return code
except ValueError:
return None