diff --git a/discordbot/cleanup_db_messages.py b/discordbot/cleanup_db_messages.py index bcbaef3..284a89a 100644 --- a/discordbot/cleanup_db_messages.py +++ b/discordbot/cleanup_db_messages.py @@ -61,7 +61,7 @@ class Titan(discord.Client): print('------') try: - await self.database.connect(config["database-uri"] + "?charset=utf8mb4") + await self.database.connect(config["database-uri"]) except Exception: self.logger.error("Unable to connect to specified database!") traceback.print_exc() diff --git a/discordbot/fetch_last_messages.py b/discordbot/fetch_last_messages.py index fb70226..8aa7700 100644 --- a/discordbot/fetch_last_messages.py +++ b/discordbot/fetch_last_messages.py @@ -60,7 +60,7 @@ class Titan(discord.Client): print('------') try: - await self.database.connect(config["database-uri"] + "?charset=utf8mb4") + await self.database.connect(config["database-uri"]) except Exception: self.logger.error("Unable to connect to specified database!") traceback.print_exc()