dice.py: remove unnecessary duplicate response.raise_for_status
This commit is contained in:
parent
859c164fea
commit
10fdf5f33c
|
@ -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('; '))
|
||||
|
|
Loading…
Reference in New Issue