From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 29 Jan 2025 21:23:10 +0000 (+0100) Subject: [3.13] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129455) X-Git-Tag: v3.13.2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b4a0d641cde667f94ce49f5e64da6bd9d6fbd9c;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py index e177464c00f7..e7e44c6413c2 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