]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129455)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Jan 2025 21:23:10 +0000 (22:23 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2025 21:23:10 +0000 (21:23 +0000)
gh-125522: Fix bare except in `test_uuid` (GH-129018)
(cherry picked from commit a1a4e9f39ad86359e148fd193089b3b2a354f71d)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Lib/test/test_uuid.py

index e177464c00f7a65a0bc7901e3e657557b217bed5..e7e44c6413c2e259fd29ebdc39ae539765214b58 100755 (executable)
@@ -19,7 +19,7 @@ def importable(name):
     try:
         __import__(name)
         return True
-    except:
+    except ModuleNotFoundError:
         return False