From d897aa17b6e5577e34bd886688d4085491776273 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Tue, 26 Jul 2011 10:33:03 +0100 Subject: [PATCH] check for existence of music_dir --- client/djrandom_client/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/djrandom_client/client.py b/client/djrandom_client/client.py index a3c4255..60edf96 100644 --- a/client/djrandom_client/client.py +++ b/client/djrandom_client/client.py @@ -75,6 +75,8 @@ def main(): opts, args = parser.parse_args() if not opts.api_key: parser.error('You must specify an API Key') + if not os.path.isdir(opts.music_dir): + parser.error('The --music_dir you specified does not exist') if args: parser.error('Too many arguments') -- GitLab