Steve Borho committed 2ad2ad3

run: catch zlib.error generically, suggest refresh (closes #759)

  • Participants
  • Parent commits 50542e8
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

 import sys
 import subprocess
 import traceback
+import zlib
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
     # 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.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", please '