on_error.py 339 B

123456789
  1. from common import log, queries
  2. from events.common import Inform
  3. def process_event(self, connection, event):
  4. log.notice(str(event)) # Log to console.
  5. # Forward error.
  6. connection.privmsg(self.network.home_channel, 'ERROR: %s' %s (event))
  7. Inform.notice_owners(self, connection, 'Received error from server: %s' % (event))