From 6d33aded6edcbb78940a4db169a85a67e5c91935 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 18 Mar 2020 18:50:14 -0400 Subject: [PATCH] [FIX]check only for URL --- imsearch/utils/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imsearch/utils/image.py b/imsearch/utils/image.py index 6d233e6..027660f 100644 --- a/imsearch/utils/image.py +++ b/imsearch/utils/image.py @@ -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)