mirror of
https://github.com/jongracecox/anybadge.git
synced 2025-07-21 20:31:03 +02:00
fix: Fix invoke when anybadge not installed
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user