From b719019dbd04ddede31f2dfad2c6a7c7b4078041 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Thu, 18 Feb 2021 22:04:29 +0100 Subject: [PATCH] WIP on #11 --- kabot/kabot/kabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 547bfdc..bddfbdb 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -23,7 +23,7 @@ from giphy_client.rest import ApiException from logging.handlers import RotatingFileHandler from pathlib import Path from subprocess import * -from sys import argv,exit +from sys import argv,exit, exc_info here = os.path.dirname(os.path.abspath(__file__)) @@ -252,7 +252,7 @@ class Mybot(commands.Cog): ctx.channel.send("%s not found" % folder) self.sounds.append((audio_file, ctx)) except: - e = sys.exc_info()[0] + e = exc_info()[0] await ctx.channel.send("Exception when calling joke: %s\n" % e)