Update slack.py

Removed unneeded if