# HG changeset patch # User Bryan O'Sullivan # Date 2013-03-22 17:56:55 # Node ID ac0336471ba766cc3c1234473e75d4478819e50d # Parent 3131c9da8bf604539e01a60fe706e3dd6d2880d0 blackbox: account for another source of errors diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -67,7 +67,7 @@ def wrapui(ui): 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