Skip to content

Commit

Permalink
Merge pull request LingDong-#3 from OnRaptor/patch-1
Browse files Browse the repository at this point in the history
Fix FileNotFoundError
  • Loading branch information
LingDong- authored Feb 18, 2020
2 parents c94b041 + 95a6446 commit 3aedc2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions linedraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -258,4 +260,4 @@ def makesvg(lines):
contour_simplify = args.contour_simplify
show_bitmap = args.show_bitmap
no_cv = args.no_cv
sketch(args.input_path)
sketch(args.input_path)

0 comments on commit 3aedc2f

Please sign in to comment.