zulip_bots: Reformat code for Mention Bot file mention.py.

This commit is contained in:
Viraat Chandra 2017-12-29 20:03:20 +05:30 committed by Robert Hönig
parent adbda6d2f2
commit 5ccbe6e6bd

View file

@ -54,8 +54,7 @@ class MentionHandler(object):
'Authorization': 'Bearer ' + self.access_token,
'Accept-Version': '1.15',
}
response = requests.get(
'https://api.mention.net/api/accounts/me', headers=get_ac_id_header)
response = requests.get('https://api.mention.net/api/accounts/me', headers=get_ac_id_header)
data_json = response.json()
account_id = data_json['account']['id']
return account_id