diff --git a/cleanfilenames.py b/cleanfilenames.py index e77fa7d..9e6bdf2 100755 --- a/cleanfilenames.py +++ b/cleanfilenames.py @@ -34,6 +34,7 @@ if os.path.isdir(dirname): count += 1 else: print("Not overwriting existing file: ", newfilename) + # Not a directory - exit and say someting nasty else: sys.exit(sys.argv[0] + errortxt)