fix: Fix invoke when anybadge not installed

This commit is contained in:
Jon Grace-Cox
2025-01-11 17:16:10 -05:00
parent d474a4065b
commit 6199d65ee7

View File

@@ -4,12 +4,12 @@ import requests
from invoke import task
from bs4 import BeautifulSoup
from anybadge.colors import Color
@task
def update(c):
"""Generate colors Enum from Mozilla color keywords."""
from anybadge.colors import Color
url = "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords"
response = requests.get(url)