pythonlib: Allow fetch without geoip 0.2.3

Fix fetch not checking if geoip2 is installed before trying to download the mmdb.
This commit is contained in:
daijro 2024-10-02 00:09:42 -05:00
parent 2d0509f3ff
commit 7985eec493
2 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,7 @@ from typing import Optional
import click
from .locale import download_mmdb, remove_mmdb
from .locale import ALLOW_GEOIP, download_mmdb, remove_mmdb
from .pkgman import INSTALL_DIR, CamoufoxFetcher, installed_verstr, rprint
@ -74,7 +74,8 @@ def fetch() -> None:
"""
CamoufoxUpdate().update()
# Fetch the GeoIP database
download_mmdb()
if ALLOW_GEOIP:
download_mmdb()
@cli.command(name='remove')

View file

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "camoufox"
version = "0.2.2"
version = "0.2.3"
description = "Wrapper around Playwright to help launch Camoufox"
authors = ["daijro <daijro.dev@gmail.com>"]
license = "MIT"