blackbox: account for another source of errors
authorBryan O'Sullivan <bryano@fb.com>
Fri, 22 Mar 2013 10:56:55 -0700
changeset 18810 ac0336471ba7
parent 18809 3131c9da8bf6
child 18811 0377352eb7d3
blackbox: account for another source of errors
hgext/blackbox.py
--- a/hgext/blackbox.py	Tue Oct 16 22:44:14 2012 +0200
+++ b/hgext/blackbox.py	Fri Mar 22 10:56:55 2013 -0700
@@ -67,7 +67,7 @@
         def setrepo(self, repo):
             try:
                 self._blackbox = repo.opener('blackbox.log', 'a')
-            except IOError, err:
+            except (IOError, OSError), err:
                 self.debug('warning: cannot write to blackbox.log: %s\n' %
                            err.strerror)
                 self._blackbox = None