This commit is contained in:
Florian Bruhin 2020-06-11 14:26:19 +02:00
parent 34822bb530
commit d9ecc35eef
2 changed files with 2 additions and 2 deletions

View File

@ -1402,7 +1402,7 @@ class CommandDispatcher:
query = QUrlQuery()
query.addQueryItem('level', level)
if plain:
query.addQueryItem('plain', None)
query.addQueryItem('plain', typing.cast(str, None))
url = QUrl('qute://log')
url.setQuery(query)

View File

@ -129,7 +129,7 @@ class HostBlocker:
if self._is_blocked(request_url=info.request_url,
first_party_url=info.first_party_url):
logger.debug("Request to {} blocked by host blocker."
.format(info.request_url.host()))
.format(info.request_url.host()))
info.block()
def _read_hosts_line(self, raw_line: bytes) -> typing.Set[str]: