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',