# HG changeset patch # User Brendan Cully # Date 2008-12-10 01:01:14 # Node ID 0a27d0db256d995fb386509ceff3901509e511b4 # Parent 85dc88630beb98ea5bc6df7f0aecb1e4273e5e0a issue1419: catch strange readline import error on windows diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -407,7 +407,8 @@ class ui(object): import readline # force demandimport to really load the module readline.read_history_file - except ImportError: + # windows sometimes raises something other than ImportError + except Exception: pass line = raw_input(prompt) # When stdin is in binary mode on Windows, it can cause