mercurial/color.py
changeset 44264 d3f776c4760e
parent 43805 ad84fc97d120
child 48736 fd2cf9e0c64e
--- a/mercurial/color.py	Wed Feb 05 15:15:18 2020 -0500
+++ b/mercurial/color.py	Wed Jan 22 03:17:06 2020 +0530
@@ -44,7 +44,7 @@
         b'cyan': (False, curses.COLOR_CYAN, b''),
         b'white': (False, curses.COLOR_WHITE, b''),
     }
-except ImportError:
+except (ImportError, AttributeError):
     curses = None
     _baseterminfoparams = {}