Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Feb 23, 2023
1 parent c1ed765 commit b9f5bbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions archive_query_log/download/warc.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ async def _download_single(
}
try:
async with client.get(archive_url) as response:
if response.status != 200:
raise
response.raise_for_status()
with TemporaryFile() as tmp_file:
writer = WARCWriter(tmp_file, gzip=True)
# noinspection PyProtectedMember
Expand Down
1 change: 1 addition & 0 deletions archive_query_log/index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from dataclasses_json import DataClassJsonMixin
from fastwarc import ArchiveIterator, FileStream, WarcRecord, \
WarcRecordType
# pylint: disable=no-name-in-module
from fastwarc.stream_io import PythonIOStreamAdapter
from marshmallow import Schema
from tqdm.auto import tqdm
Expand Down
3 changes: 1 addition & 2 deletions archive_query_log/results/test/generate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def main():
response = get(
wayback_raw_url,
)
if response.status_code != 200:
raise
response.raise_for_status()

# noinspection PyProtectedMember
version = str(response.raw.version)
Expand Down

0 comments on commit b9f5bbe

Please sign in to comment.