Merge pull request #3 from OnRaptor/patch-1

Fix FileNotFoundError
master
Lingdong Huang 2020-02-18 17:56:32 -05:00 zatwierdzone przez GitHub
commit 3aedc2f61d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -175,7 +175,9 @@ def sketch(path):
try:
IM = Image.open(p)
break
except:
except FileNotFoundError:
print("The Input File wasn't found. Check Path")
exit(0)
pass
w,h = IM.size
@ -258,4 +260,4 @@ if __name__ == "__main__":
contour_simplify = args.contour_simplify
show_bitmap = args.show_bitmap
no_cv = args.no_cv
sketch(args.input_path)
sketch(args.input_path)