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)