Fix the check to raise the correct message (#2603)

This commit is contained in:
Will 2019-04-24 15:24:31 -04:00 committed by Kowlin
parent ec108e7c02
commit f20a174038

View File

@ -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))