mirror of
https://github.com/daijro/camoufox.git
synced 2026-10-07 00:00:33 +00:00
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:
@@ -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')
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user