hgext/inotify/server.py
changeset 16688 cfb6682961b8
parent 15151 0d4f6e843b05
child 18096 cd53e40ab0e2
--- a/hgext/inotify/server.py	Sat May 12 16:00:58 2012 +0200
+++ b/hgext/inotify/server.py	Sat May 12 16:02:45 2012 +0200
@@ -355,7 +355,7 @@
                 except (OSError, socket.error), inst:
                     try:
                         os.unlink(self.realsockpath)
-                    except:
+                    except OSError:
                         pass
                     os.rmdir(tempdir)
                     if inst.errno == errno.EEXIST:
@@ -416,7 +416,7 @@
                 # try to send back our version to the client
                 # this way, the client too is informed of the mismatch
                 sock.sendall(chr(common.version))
-            except:
+            except socket.error:
                 pass
             return