Skip to content
Snippets Groups Projects
Commit 577b0568 authored by nimrod's avatar nimrod
Browse files

Silence some new pylint warnings.

parent d4a4f9b8
Branches
No related tags found
No related merge requests found
Pipeline #2107 passed
......@@ -25,6 +25,7 @@ def scan(library=None):
headers=headers,
data=json.dumps(audio_request_data).encode(),
)
# pylint: disable-next=consider-using-with
urllib.request.urlopen(req) # nosec
elif library == "video":
req = urllib.request.Request(
......@@ -32,6 +33,7 @@ def scan(library=None):
headers=headers,
data=json.dumps(video_request_data).encode(),
)
# pylint: disable-next=consider-using-with
urllib.request.urlopen(req) # nosec
else:
scan("video")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment