Compagnie-Hydromel / CompagnieHydromel

The repository to maintain the discord bot from the hydromel compagnie discord server
MIT License
2 stars 0 forks source link

Error when Wallpaper commande without argument #5

Closed PierrotMetille closed 1 year ago

PierrotMetille commented 1 year ago

Notable non-fonctionable command :

EthannSchneider commented 1 year ago

2023-08-04 23:38:05.583310 [ERROR] : Traceback (most recent call last): File "/home/ethann/Document/BotDiscord/CompagnieHydromel/cogs/archiveuse/profile_manager.py", line 46, in profile_manager await ctx.respond(file=discord.File(Utils().download_image(Wallpaper(options_specifies).url()), "wallpaper.png")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ethann/Document/BotDiscord/CompagnieHydromel/libs/databases/wallpaper.py", line 24, in init if not self.__db_access.is_wallpaper_exist(self.wallpaper_name): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ethann/Document/BotDiscord/CompagnieHydromel/libs/databases/sqlite/sqlite_access.py", line 184, in is_wallpaper_exist return len(self.sqliteDB.select("SELECT name FROM wallpapers WHERE name = '" + wallpaper_name + "'")) > 0


TypeError: can only concatenate str (not "NoneType") to str
EthannSchneider commented 1 year ago

Solved on https://github.com/EthannSchneider/CompagnieHydromel/pull/6