This commit is contained in:
Milka64 2021-02-18 22:04:29 +01:00
parent abb7f34d9f
commit b719019dbd

View file

@ -23,7 +23,7 @@ from giphy_client.rest import ApiException
from logging.handlers import RotatingFileHandler from logging.handlers import RotatingFileHandler
from pathlib import Path from pathlib import Path
from subprocess import * from subprocess import *
from sys import argv,exit from sys import argv,exit, exc_info
here = os.path.dirname(os.path.abspath(__file__)) here = os.path.dirname(os.path.abspath(__file__))
@ -252,7 +252,7 @@ class Mybot(commands.Cog):
ctx.channel.send("%s not found" % folder) ctx.channel.send("%s not found" % folder)
self.sounds.append((audio_file, ctx)) self.sounds.append((audio_file, ctx))
except: except:
e = sys.exc_info()[0] e = exc_info()[0]
await ctx.channel.send("Exception when calling joke: %s\n" % e) await ctx.channel.send("Exception when calling joke: %s\n" % e)