summaryrefslogtreecommitdiff
path: root/hgext/inotify/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'hgext/inotify/server.py')
-rw-r--r--hgext/inotify/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hgext/inotify/server.py b/hgext/inotify/server.py
index b654b17..b2dcaad 100644
--- a/hgext/inotify/server.py
+++ b/hgext/inotify/server.py
@@ -355,7 +355,7 @@ class socketlistener(object):
except (OSError, socket.error), inst:
try:
os.unlink(self.realsockpath)
- except OSError:
+ except:
pass
os.rmdir(tempdir)
if inst.errno == errno.EEXIST:
@@ -416,7 +416,7 @@ class socketlistener(object):
# 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 socket.error:
+ except:
pass
return