https://github.com/python/cpython/commit/8b4a0d641cde667f94ce49f5e64da6bd9d6fbd9c
commit: 8b4a0d641cde667f94ce49f5e64da6bd9d6fbd9c
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: iritkatriel <[email protected]>
date: 2025-01-29T21:23:10Z
summary:

[3.13] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129455)

gh-125522: Fix bare except in `test_uuid` (GH-129018)
(cherry picked from commit a1a4e9f39ad86359e148fd193089b3b2a354f71d)

Co-authored-by: Tomas R <[email protected]>

files:
M Lib/test/test_uuid.py

diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index e177464c00f7a6..e7e44c6413c2e2 100755
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -19,7 +19,7 @@ def importable(name):
     try:
         __import__(name)
         return True
-    except:
+    except ModuleNotFoundError:
         return False
 
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to