Skip to content

Commit 41a5e02

Browse files
author
Diego Contreras
committed
Update RecursiveScanner.py
1 parent 3262e28 commit 41a5e02

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

RobotCDocs/PythonFileLibrary/RecursiveScanner.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ def GetFileExtension(self, file):
2424

2525
def Scan(self, directory):
2626
for obj in os.listdir(directory):
27-
# If it's a folder, keep searching.
27+
# If it's a folder, keep searching. If it's a weird file, skip it.
2828
if '.' not in obj:
29-
self.Scan(os.path.join(directory, obj))
29+
try:
30+
self.Scan(os.path.join(directory, obj))
31+
except:
32+
pass
3033

3134
else:
3235
# If it's a file in our whitelist, make a FileScanner for it

0 commit comments

Comments
 (0)