Skip to content

Commit

Permalink
buttonmen-dev#2668 wrap_submit_chat
Browse files Browse the repository at this point in the history
  • Loading branch information
danlangford authored May 20, 2023
1 parent e100d12 commit 13fef26
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/api-client/python/lib/bmutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,19 @@ def wrap_load_forum_thread(self, thread):
retval = self.client.load_forum_thread(thread)
if not retval.status == 'ok':
raise ValueError("Failed to call loadForumThread, got: " + retval.message)
data = retval.data

return data
return retval.data

def wrap_edit_forum_post(self, postId, body):
retval = self.client.edit_forum_post(postId, body)
if not retval.status == 'ok':
raise ValueError("Failed to call editForumThread, got: " + retval.message)
data = retval.data
return retval.data

return data
def wrap_submit_chat(self, game, chat):
retval = self.client.submit_chat(game, chat)
if not retval.status == 'ok':
raise ValueError("Failed to call submitChat, got: " + retval.message)
return retval.data

def wrap_load_completed_games(self):
retval = self.client.load_completed_games()
Expand Down

0 comments on commit 13fef26

Please sign in to comment.