Fix lint
This commit is contained in:
parent
be02bfb37d
commit
b23ddb31c9
@ -1182,13 +1182,12 @@ class CommandDispatcher:
|
|||||||
url = urlutils.qurl_from_user_input(url)
|
url = urlutils.qurl_from_user_input(url)
|
||||||
urlutils.raise_cmdexc_if_invalid(url)
|
urlutils.raise_cmdexc_if_invalid(url)
|
||||||
download_manager.get(url, filename=dest)
|
download_manager.get(url, filename=dest)
|
||||||
else:
|
elif mhtml_:
|
||||||
if mhtml_:
|
|
||||||
self._download_mhtml(dest)
|
self._download_mhtml(dest)
|
||||||
else:
|
else:
|
||||||
# FIXME:refactor have a proper API for this
|
# FIXME:refactor have a proper API for this
|
||||||
# pylint: disable=protected-access
|
tab = self._current_widget()
|
||||||
page = self._current_widget()._widget.page()
|
page = tab._widget.page() # pylint: disable=protected-access
|
||||||
download_manager.get(self._current_url(), page=page,
|
download_manager.get(self._current_url(), page=page,
|
||||||
filename=dest)
|
filename=dest)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user