Skip to content

Commit 001e786

Browse files
pylint
1 parent 7eb3a46 commit 001e786

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/inputstreamhelper/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import struct
1010
from functools import total_ordering
1111
from socket import timeout
12-
from ssl import SSLError
1312
from time import time
1413
from typing import NamedTuple
1514
from urllib.error import HTTPError, URLError
@@ -86,8 +85,8 @@ def _http_request(url, headers=None, time_out=30):
8685
if yesno_dialog(localize(30004), '{line1}\n{line2}'.format(line1=localize(30063), line2=localize(30065))): # Internet down, try again?
8786
return _http_request(url, headers, time_out)
8887
return None
89-
except timeout as e:
90-
log(2, f"HTTP request timed out: {e}")
88+
except timeout as err:
89+
log(2, f"HTTP request timed out: {err}")
9190
return None
9291

9392
def http_get(url):

0 commit comments

Comments
 (0)