aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscan.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scan.py b/scan.py
index cfae385..eb24db4 100755
--- a/scan.py
+++ b/scan.py
@@ -35,6 +35,8 @@ def main():
db = []
with open(DB_FILENAME + '.new', 'wb') as out:
for root, dirs, files in os.walk(START_DIR):
+ if not len(files):
+ continue
files, uuids = partition(lambda f: '/uuid.txt' in f,
(os.path.join(root, f) for f in files))
if len(uuids) == 1: