Replace IRCException by IMException, as nemubot is not only built for IRC
This commit is contained in:
parent
ac33ceb579
commit
8b4f08c5bd
40 changed files with 183 additions and 188 deletions
|
|
@ -7,7 +7,7 @@ import sys
|
|||
from datetime import date, datetime
|
||||
|
||||
from nemubot import context
|
||||
from nemubot.exception import IRCException
|
||||
from nemubot.exception import IMException
|
||||
from nemubot.hooks import hook
|
||||
from nemubot.tools.countdown import countdown_format
|
||||
from nemubot.tools.date import extractDate
|
||||
|
|
@ -131,4 +131,4 @@ def parseask(msg):
|
|||
msg.channel,
|
||||
msg.nick)
|
||||
except:
|
||||
raise IRCException("la date de naissance ne paraît pas valide.")
|
||||
raise IMException("la date de naissance ne paraît pas valide.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue