Made mute methods raise if they errored

This commit is contained in:
Mads Marquart
2018-08-29 23:51:33 +02:00
parent 348db90f7b
commit 28e3b6285e

View File

@@ -1906,7 +1906,7 @@ class Client(object):
"thread_fbid": thread_id
}
r = self._post(self.req_url.MUTE_THREAD, data)
return r.ok
r.raise_for_status()
def unmuteThread(self, thread_id=None):
"""
@@ -1929,7 +1929,7 @@ class Client(object):
"thread_fbid": thread_id
}
r = self._post(self.req_url.MUTE_REACTIONS, data)
return r.ok
r.raise_for_status()
def unmuteThreadReactions(self, thread_id=None):
"""
@@ -1952,7 +1952,7 @@ class Client(object):
"thread_fbid": thread_id
}
r = self._post(self.req_url.MUTE_MENTIONS, data)
return r.ok
r.raise_for_status()
def unmuteThreadMentions(self, thread_id=None):
"""