Fix dropping db in redbot-setup delete (#3833)

* Fix dropping db in `redbot-setup delete`

* fix docstrings
This commit is contained in:
jack1142
2021-04-05 21:17:18 +02:00
committed by GitHub
parent b7d8b0552e
commit 9008410fa4
2 changed files with 15 additions and 33 deletions

View File

@@ -381,7 +381,7 @@ class MongoDriver(BaseDriver):
while True:
resp = input("> ")
try:
drop_db = bool(options.index(resp))
drop_db = not bool(options.index(resp))
except ValueError:
print("Please type a number corresponding to one of the options.")
else: