Mercurial > hg-stable
changeset 18810:ac0336471ba7
blackbox: account for another source of errors
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Fri, 22 Mar 2013 10:56:55 -0700 |
parents | 3131c9da8bf6 |
children | 0377352eb7d3 |
files | hgext/blackbox.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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