35538e4eba517f561bd3c6cdb006a233042874e2,kur/model/hooks/slack_hook.py,SlackHook,send_message,#SlackHook#Any#Any#,52
Before Change
try:
response = director.open(request)
except: // pylint: disable=bare-except
logger.exception("Failed to connect to Slack. Make sure the URL "
"and channel are correct. If the channel was newly created, "
"it might take a little time for Slack to catch up.")
else:
if response.code != 200:
logger.error("Failed to post Slack notification. Make sure "
"the URL and channel are correct. If the channel was newly "
After Change
"text" : text
}
data, header = prepare_json(data)
self._submit(self.url, data, header)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: deepgram/kur
Commit Name: 35538e4eba517f561bd3c6cdb006a233042874e2
Time: 2017-01-31
Author: ajsyp@syptech.net
File Name: kur/model/hooks/slack_hook.py
Class Name: SlackHook
Method Name: send_message
Project Name: home-assistant/home-assistant
Commit Name: 884525df33ffb939b354177d6f99ead8ccb28840
Time: 2015-10-25
Author: tom.duijf@gmail.com
File Name: homeassistant/components/media_player/plex.py
Class Name:
Method Name: setup_plexserver
Project Name: home-assistant/home-assistant
Commit Name: 8d34b76d510c64eaf1fea257260d11ec5a206478
Time: 2016-05-17
Author: brian.lenihan@gmail.com
File Name: homeassistant/components/device_tracker/asuswrt.py
Class Name: AsusWrtDeviceScanner
Method Name: get_asuswrt_data