error if not matches for nearest color

This commit is contained in:
q
2015-07-09 07:56:12 +03:00
parent e08b674703
commit 818dd84bc4

View File

@@ -409,7 +409,9 @@ def find_color_nearest(opts):
return return
for f in fs: for f in fs:
hits.append((f,hit[1],hit[2],hit[3],hit[4])) 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])) file_len=str(max([len(x[0]) for x in hits]))
for h in range(len(hits)): for h in range(len(hits)):
if h>=src[3]: if h>=src[3]: