WIP on #11
This commit is contained in:
parent
abb7f34d9f
commit
b719019dbd
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue