mutable: don't tell server about corruption unless it's really CorruptShareError

This commit is contained in:
Brian Warner 2012-01-07 14:40:57 -08:00
parent f1752f54c0
commit ca78e6b146

View File

@ -591,7 +591,8 @@ class Retrieve:
self._bad_shares.add((server, shnum, f))
self._status.add_problem(server, f)
self._last_failure = f
self.notify_server_corruption(server, shnum, str(f.value))
if f.check(CorruptShareError):
self.notify_server_corruption(server, shnum, str(f.value))
def _download_current_segment(self):