Import forum profile pictures and host them directly
This commit is contained in:
@@ -92,7 +92,7 @@ def getProfile(url, username):
|
||||
url = getProfileURL(url, username)
|
||||
|
||||
try:
|
||||
req = urllib.request.urlopen(url, timeout=5)
|
||||
req = urllib.request.urlopen(url, timeout=15)
|
||||
except urllib.error.HTTPError as e:
|
||||
if e.code == 404:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user