Commit adc39b77 authored by Carsten Emde's avatar Carsten Emde
Browse files

First check skip condition, then acces the file

parent 537ec907
......@@ -474,10 +474,6 @@ def main(argv):
for filename in direntry[2]:
fullfilename = os.path.join(direntry[0], filename)
# Exclude broken links
if not os.path.exists(fullfilename):
continue
# Exclude specified directories
skip = False
for skipdir in skipdirs:
......@@ -487,6 +483,10 @@ def main(argv):
if skip:
continue
# Exclude broken links
if not os.path.exists(fullfilename):
continue
if args.verbose:
print(fullfilename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment