commit:     486e8cfb4fc99bbaa814479021fd134bac912937
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 24 16:11:22 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 24 16:22:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=486e8cfb

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 <AT> gentoo.org>

 dev-python/tzdata/{tzdata-10000.ebuild => tzdata-10001.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/tzdata/tzdata-10000.ebuild 
b/dev-python/tzdata/tzdata-10001.ebuild
similarity index 89%
rename from dev-python/tzdata/tzdata-10000.ebuild
rename to 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
 }

Reply via email to