]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129456)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Jan 2025 21:16:47 +0000 (22:16 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2025 21:16:47 +0000 (21:16 +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 9cec1e87fd3c2d5d50fa3801c9263f27d8def614..08359a336f2f8dd00005b8baab9c2b1746e3bd55 100755 (executable)
@@ -19,7 +19,7 @@ def importable(name):
     try:
         __import__(name)
         return True
-    except:
+    except ModuleNotFoundError:
         return False