Remove sys.exit from sub-modules

This commit is contained in:
Ritiek Malhotra
2020-05-12 02:50:19 +05:30
parent 150d8b0b81
commit e3e56b76a2
2 changed files with 2 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ try:
except ImportError: except ImportError:
logger.error("Oops! `unicode-slugify` was not found.") logger.error("Oops! `unicode-slugify` was not found.")
logger.info("Please remove any other slugify library and install `unicode-slugify`.") logger.info("Please remove any other slugify library and install `unicode-slugify`.")
sys.exit(5) raise
class SpotifyHelpers: class SpotifyHelpers:
@@ -62,7 +62,6 @@ class SpotifyHelpers:
"Unable to find playlist. Make sure the playlist is set " "Unable to find playlist. Make sure the playlist is set "
"to publicly visible and then try again." "to publicly visible and then try again."
) )
sys.exit(11)
return results return results

View File

@@ -18,7 +18,7 @@ try:
except ImportError: except ImportError:
logger.error("Oops! `unicode-slugify` was not found.") logger.error("Oops! `unicode-slugify` was not found.")
logger.info("Please remove any other slugify library and install `unicode-slugify`") logger.info("Please remove any other slugify library and install `unicode-slugify`")
sys.exit(5) raise
# This has been referred from # This has been referred from