mercurial/ui.py
changeset 16703 7292a4618f46
parent 16683 525fdb738975
child 16751 2d432a1fc0db
--- a/mercurial/ui.py	Sun May 13 13:17:27 2012 +0200
+++ b/mercurial/ui.py	Sun May 13 13:17:31 2012 +0200
@@ -488,9 +488,9 @@
 
     def flush(self):
         try: self.fout.flush()
-        except: pass
+        except (IOError, ValueError): pass
         try: self.ferr.flush()
-        except: pass
+        except (IOError, ValueError): pass
 
     def interactive(self):
         '''is interactive input allowed?