Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Feb 13, 2021
1 parent a50ef5e commit 843120e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions future.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,9 @@ def _retrieveImage():
url = request.args.get("url", "", type=str)
if url.startswith("//"):
try:
image = requests.get("http:"url, allow_redirects=True)
image = requests.get("http:" + url, allow_redirects=True)
except:
image = requests.get("https:"url, allow_redirects=True)
image = requests.get("https:" + url, allow_redirects=True)

pic = Image.open(io.BytesIO(image.content))
pic.thumbnail((480, 480), Image.LANCZOS)
Expand Down

0 comments on commit 843120e

Please sign in to comment.