Add some assertions to DownloadItem.retry.

This commit is contained in:
Florian Bruhin 2015-11-09 07:34:49 +01:00
parent 612174ada0
commit 95483f73d8

View File

@ -420,6 +420,8 @@ class DownloadItem(QObject):
@pyqtSlot()
def retry(self):
"""Retry a failed download."""
assert self.done
assert not self.successful
download_manager = objreg.get('download-manager', scope='window',
window=self._win_id)
new_reply = self.retry_info.manager.get(self.retry_info.request)