From e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9 Mon Sep 17 00:00:00 2001 From: VG Date: Sun, 19 Jul 2015 03:55:19 +0200 Subject: log removing only when there is something to remove --- scan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scan.py b/scan.py index eb24db4..3b47df1 100755 --- a/scan.py +++ b/scan.py @@ -42,7 +42,8 @@ def main(): if len(uuids) == 1: my_uuid = open(uuids[0]).readline().strip() else: - print('removing:', uuids) + if uuids: + print('removing:', uuids) for f in uuids: os.unlink(f) my_uuid = create_uuid_txt(root) -- cgit v1.2.3