From 9ed7347f03f947139fe5d3b6423570eb1a456647 Mon Sep 17 00:00:00 2001 From: Nitesh Sawant Date: Tue, 23 Jan 2018 00:06:08 +0530 Subject: [PATCH] Changes as per PR comments --- .vscode/settings.json | 3 --- core/internals.py | 10 ++++++---- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 615aafb..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "python.pythonPath": "/usr/bin/python3" -} \ No newline at end of file diff --git a/core/internals.py b/core/internals.py index a379cfe..5f14781 100755 --- a/core/internals.py +++ b/core/internals.py @@ -1,15 +1,17 @@ -from slugify import SLUG_OK, slugify +import sys from core import const +log = const.log + try: from slugify import SLUG_OK, slugify except ImportError: - log.warning('Remove any other slugifies and install unicode-slugify') + log.error('Oops! `unicode-slugify` was not found.') + log.info('Please remove any other slugify library and install `unicode-slugify`') + sys.exit(5) import os -log = const.log - formats = { 0 : 'track_name', 1 : 'artist', 2 : 'album',