mercurial/crecord.py
changeset 44264 d3f776c4760e
parent 44135 ae596fac8ba0
child 45002 d2227d4c9e6b
child 45011 1bab6b61b62b
--- a/mercurial/crecord.py	Wed Feb 05 15:15:18 2020 -0500
+++ b/mercurial/crecord.py	Wed Jan 22 03:17:06 2020 +0530
@@ -63,13 +63,13 @@
     import curses.ascii
 
     curses.error
-except ImportError:
+except (ImportError, AttributeError):
     # I have no idea if wcurses works with crecord...
     try:
         import wcurses as curses
 
         curses.error
-    except ImportError:
+    except (ImportError, AttributeError):
         # wcurses is not shipped on Windows by default, or python is not
         # compiled with curses
         curses = False