summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-03-24 17:11:22 +0100
committerMichał Górny <mgorny@gentoo.org>2024-03-24 17:22:34 +0100
commit486e8cfb4fc99bbaa814479021fd134bac912937 (patch)
tree42d041b800f3bccd26180c77cf75c51d6469962c /dev-python/tzdata
parentpackage.mask: Unmask (now fixed) dev-python/hatchling (diff)
downloadgentoo-486e8cfb4fc99bbaa814479021fd134bac912937.tar.gz
gentoo-486e8cfb4fc99bbaa814479021fd134bac912937.tar.bz2
gentoo-486e8cfb4fc99bbaa814479021fd134bac912937.zip
dev-python/tzdata: Use ModuleNotFoundError (in 10001)
Replace `ImportError` with `ModuleNotFoundError` to fix dev-python/hypothesis, since it uses a more specific `except` block. It's technically a bit shifty since the module was clearly found but *shrug*. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/tzdata')
-rw-r--r--dev-python/tzdata/tzdata-10001.ebuild (renamed from dev-python/tzdata/tzdata-10000.ebuild)2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-python/tzdata/tzdata-10000.ebuild b/dev-python/tzdata/tzdata-10001.ebuild
index b2ef5c03488f..5f843b77070e 100644
--- a/dev-python/tzdata/tzdata-10000.ebuild
+++ b/dev-python/tzdata/tzdata-10001.ebuild
@@ -32,6 +32,6 @@ src_unpack() {
description = "tzdata shim to satisfy requirements (using system tzdata)"
EOF
cat > "${S}/tzdata.py" <<-EOF || die
- raise ImportError("Please do not import tzdata, use zoneinfo module instead, see PEP 615")
+ raise ModuleNotFoundError("Please do not import tzdata, use zoneinfo module instead, see PEP 615")
EOF
}