]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125522: Fix bare except in `test_uuid` (#129018)
authorTomas R. <tomas.roun8@gmail.com>
Wed, 29 Jan 2025 20:59:45 +0000 (21:59 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2025 20:59:45 +0000 (20:59 +0000)
Lib/test/test_uuid.py

index 74c8e2838efc8f1ab3e24ca53bc192682ea68674..8216c4dd00e35a389a07bb91c7c21abc95e2a8fe 100755 (executable)
@@ -21,7 +21,7 @@ def importable(name):
     try:
         __import__(name)
         return True
-    except:
+    except ModuleNotFoundError:
         return False