mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-03 20:13:51 +12:00
this is so black
This commit is contained in:
parent
7d33b2703d
commit
bba8dd73ed
|
@ -58,7 +58,7 @@ def settings_converter(user_input: str) -> dict:
|
|||
except AssertionError:
|
||||
raise commands.BadArgument(f"{value} must be a non-negative integer value or `null`")
|
||||
|
||||
for value in ("fail_rate"):
|
||||
for value in "fail_rate":
|
||||
if value in args:
|
||||
try:
|
||||
assert args[value] >= 0
|
||||
|
@ -66,7 +66,7 @@ def settings_converter(user_input: str) -> dict:
|
|||
except AssertionError:
|
||||
raise commands.BadArgument(f"{value} must be a decimal value between 0 and 1.")
|
||||
|
||||
for value in ("decay_rate"):
|
||||
for value in "decay_rate":
|
||||
if value in args:
|
||||
try:
|
||||
assert args[value] >= 0
|
||||
|
|
Loading…
Reference in a new issue