Skip to content

Commit

Permalink
[FIX]check only for URL
Browse files Browse the repository at this point in the history
  • Loading branch information
rikenmehta03 committed Mar 18, 2020
1 parent 5747e96 commit 6d33ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imsearch/utils/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def load_image(image_path):
return img

def check_load_image(image_path):
if requests.get(image_path).status_code != 200:
if 'http' in image_path and requests.get(image_path).status_code != 200:
return None

img = io.imread(image_path)
Expand Down

0 comments on commit 6d33ade

Please sign in to comment.