Commit 585c3bf7 authored by Carsten Emde's avatar Carsten Emde
Browse files

Trap an exception that may happen when checking for directories to skip

parent 9db35f85
......@@ -471,7 +471,10 @@ def main(argv):
dirwalker = os.walk(dirtoscan)
for root, dirs, files in os.walk(dirtoscan, topdown = True):
[dirs.remove(d) for d in list(dirs) for s in skipdirs if root.startswith(s)]
try:
[dirs.remove(d) for d in list(dirs) for s in skipdirs if root.startswith(s)]
except:
continue
for filename in files:
fullfilename = os.path.join(root, filename)
......
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