Fix bootstrap issues when building without threads
diff --git a/Lib/reprlib.py b/Lib/reprlib.py
index c44c75c..7b5c436 100644
--- a/Lib/reprlib.py
+++ b/Lib/reprlib.py
@@ -6,7 +6,7 @@
 from itertools import islice
 try:
     from _thread import get_ident
-except AttributeError:
+except ImportError:
     from _dummy_thread import get_ident
 
 def recursive_repr(fillvalue='...'):