From 818dd84bc48f926f0edd6ddb697c755a70fa45dd Mon Sep 17 00:00:00 2001 From: q Date: Thu, 9 Jul 2015 07:56:12 +0300 Subject: [PATCH] error if not matches for nearest color --- image_list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/image_list.py b/image_list.py index df3de07..b688513 100755 --- a/image_list.py +++ b/image_list.py @@ -409,7 +409,9 @@ def find_color_nearest(opts): return for f in fs: hits.append((f,hit[1],hit[2],hit[3],hit[4])) - + if len(hits)==0: + print("0 hits! You may have metadata of nonexisting files!, run with -D to erase") + file_len=str(max([len(x[0]) for x in hits])) for h in range(len(hits)): if h>=src[3]: