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 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 from .pkgman import INSTALL_DIR, CamoufoxFetcher, installed_verstr, rprint
@ -74,6 +74,7 @@ def fetch() -> None:
""" """
CamoufoxUpdate().update() CamoufoxUpdate().update()
# Fetch the GeoIP database # Fetch the GeoIP database
if ALLOW_GEOIP:
download_mmdb() download_mmdb()

View file

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