From b9039df49280e87fcfe2a47c3c4fc2cf6b2d1481 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sun, 21 Jul 2013 14:06:06 +0530 Subject: [PATCH] Quiet the scanning warning message if no dir is set --- headphones/librarysync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index 05ff49a0..5ee57d8b 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -28,7 +28,10 @@ def libraryScan(dir=None, append=False, ArtistID=None, ArtistName=None, cron=Fal return if not dir: - dir = headphones.MUSIC_DIR + if not headphones.MUSIC_DIR: + return + else: + dir = headphones.MUSIC_DIR # If we're appending a dir, it's coming from the post processor which is # already bytestring