From 10fdf5f33c5228e4b01311cc2426aab26abe6efc Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 29 Sep 2019 12:16:57 -0500 Subject: [PATCH] dice.py: remove unnecessary duplicate response.raise_for_status --- hitomi/dice.py | 1 - 1 file changed, 1 deletion(-) diff --git a/hitomi/dice.py b/hitomi/dice.py index ea2fa5d..13ac65a 100644 --- a/hitomi/dice.py +++ b/hitomi/dice.py @@ -23,7 +23,6 @@ class Dice(commands.Cog): logger.info("rolling dice: %s", dice) try: response = dr_botzo.post('/dice/rpc/roll/', json={'dice': dice}) - response.raise_for_status() logger.debug("result of rolling dice: HTTP %s, %s", response.status_code, response.text) output = re.sub(r'(\d+)(.*?\s+)(\(.*?\))', r'**\1**\2\3', response.json()['result']) output = '\n'.join(output.split('; '))