Replace IRCException by IMException, as nemubot is not only built for IRC

This commit is contained in:
nemunaire 2015-10-30 21:57:45 +01:00
commit 8b4f08c5bd
40 changed files with 183 additions and 188 deletions

View file

@ -57,12 +57,12 @@ class Abstract:
def run(self, data1, *args):
"""Run the hook"""
from nemubot.exception import IRCException
from nemubot.exception import IMException
self.times -= 1
try:
ret = call_game(self.call, data1, self.data, *args)
except IRCException as e:
except IMException as e:
ret = e.fill_response(data1)
finally:
if self.times == 0: