Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsvennesson committed Oct 5, 2024
1 parent 7eb3a46 commit 001e786
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/inputstreamhelper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import struct
from functools import total_ordering
from socket import timeout
from ssl import SSLError
from time import time
from typing import NamedTuple
from urllib.error import HTTPError, URLError
Expand Down Expand Up @@ -86,8 +85,8 @@ def _http_request(url, headers=None, time_out=30):
if yesno_dialog(localize(30004), '{line1}\n{line2}'.format(line1=localize(30063), line2=localize(30065))): # Internet down, try again?
return _http_request(url, headers, time_out)
return None
except timeout as e:
log(2, f"HTTP request timed out: {e}")
except timeout as err:
log(2, f"HTTP request timed out: {err}")
return None

def http_get(url):
Expand Down

0 comments on commit 001e786

Please sign in to comment.