mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
Fix the check to raise the correct message (#2603)
This commit is contained in:
parent
ec108e7c02
commit
f20a174038
@ -40,9 +40,11 @@ def get_driver(type, *args, **kwargs):
|
|||||||
from .red_mongo import Mongo
|
from .red_mongo import Mongo
|
||||||
|
|
||||||
return Mongo(*args, **kwargs)
|
return Mongo(*args, **kwargs)
|
||||||
elif type == "Mongo":
|
elif type == "MongoDB":
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"Please convert to JSON first to continue using the bot."
|
"Please convert to JSON first to continue using the bot."
|
||||||
" This is a required conversion prior to using the new Mongo driver."
|
" This is a required conversion prior to using the new Mongo driver."
|
||||||
|
" This message will be updated with a link to the update docs once those"
|
||||||
|
" docs have been created."
|
||||||
)
|
)
|
||||||
raise RuntimeError("Invalid driver type: '{}'".format(type))
|
raise RuntimeError("Invalid driver type: '{}'".format(type))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user