Skip to content
Snippets Groups Projects
Commit d897aa17 authored by ale's avatar ale
Browse files

check for existence of music_dir

parent 110ab48d
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment