aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar abdullah oday <[email protected]>2019-02-16 12:25:44 +0300
committerGravatar abdullah oday <[email protected]>2019-02-16 12:25:44 +0300
commit6856820e059957620649e786098f8b8a05a0db1a (patch)
tree18d4f07162dce7a8518d36788466800b4ed9bf00
parentUsed bot.http_session instead of creating a new session, and now checking for... (diff)
Added logging for KeyError
-rw-r--r--bot/seasons/valentines/movie_generator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/valentines/movie_generator.py b/bot/seasons/valentines/movie_generator.py
index 449a3819..791293cf 100644
--- a/bot/seasons/valentines/movie_generator.py
+++ b/bot/seasons/valentines/movie_generator.py
@@ -55,6 +55,8 @@ class RomanceMovieFinder:
await ctx.send(embed=embed)
except KeyError:
embed = discord.Embed(title='Something went wrong')
+ log.setLevel(logging.WARNING)
+ log.debug('Got KeyError at romance movie cog')
await ctx.send(embed=embed)