[3.12] gh-125522: Fix bare except in test_uuid (GH-129018) (#129456)

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

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-01-29 22:16:47 +01:00 committed by GitHub
parent f65aa0d1bf
commit c0ae83af95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ def importable(name):
try:
__import__(name)
return True
except:
except ModuleNotFoundError:
return False