removed dodgy error handling

This commit is contained in:
aj 2019-06-10 21:59:36 +01:00
parent 89f8c8961b
commit e00dda22a1

View File

@ -45,7 +45,6 @@ class PlaylistEngine:
else: else:
log.log("requested playlist {} not found".format(part)) log.log("requested playlist {} not found".format(part))
if play is not None:
if 'SLACKHOOK' in os.environ: if 'SLACKHOOK' in os.environ:
requests.post(os.environ['SLACKHOOK'], json={"text": "spot playlists: {} not found".format(part)}) requests.post(os.environ['SLACKHOOK'], json={"text": "spot playlists: {} not found".format(part)})