Yuya Nishihara  committed f198842

qtapp: correct exception mapping of revlog decompress error

It was added by 2ad2ad3c07e2 in order to address issue #759, zlib.error
raised by revlog.decompress(). Since hg 5e3a1b96dbb0, zlib.error is wrapped
by RevlogError.

  • Participants
  • Parent commits 791a2db

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2, incorporated herein by reference.
-import gc, os, sys, traceback, zlib
+import gc, os, sys, traceback
 from PyQt4.QtCore import *
 from PyQt4.QtGui import QApplication
 # It doesn't check the hierarchy of exception classes for simplicity.
 _recoverableexc = {
     error.RepoLookupError: _('Try refreshing your repository.'),
-    zlib.error:            _('Try refreshing your repository.'),
+    error.RevlogError:     _('Try refreshing your repository.'),
     error.ParseError: _('Error string "%(arg0)s" at %(arg1)s<br>Please '
                         '<a href="#edit:%(arg1)s">edit</a> your config'),
     error.ConfigError: _('Configuration Error: "%(arg0)s",<br>Please '