issue1419: catch strange readline import error on windows
authorBrendan Cully <brendan@kublai.com>
Tue, 09 Dec 2008 17:01:14 -0800
changeset 7496 0a27d0db256d
parent 7494 85dc88630beb
child 7497 f598df061fec
child 7500 ab3fb222b345
issue1419: catch strange readline import error on windows
mercurial/ui.py
--- a/mercurial/ui.py	Wed Dec 10 00:16:12 2008 +0100
+++ b/mercurial/ui.py	Tue Dec 09 17:01:14 2008 -0800
@@ -407,7 +407,8 @@
                 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