Skip to content

Commit

Permalink
Appease linter, second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Aug 13, 2024
1 parent bc5ed6a commit e2a94a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova3/engines/eztv.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def do_query(self, what):
user_agent = 'Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0'
req = urllib.request.Request(url, data, {'User-Agent': user_agent})
try:
response = urllib.request.urlopen(req)
response = urllib.request.urlopen(req) # nosec B310
return response.read().decode('utf-8')
except urllib.error.URLError as errno:
print(f"Connection error: {errno.reason}")
Expand Down

0 comments on commit e2a94a1

Please sign in to comment.