cleanup in ircbot/

This commit is contained in:
Stephan Telling 2018-03-04 15:52:56 +01:00
parent e482501d7b
commit f20695094e
3 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,5 @@
from django.contrib import admin
from .models import *
from .models import OutgoingIrcMessage
admin.site.register(OutgoingIrcMessage)

View file

@ -1,5 +1,3 @@
from django.apps import AppConfig

View file

@ -1,5 +1,6 @@
from django.conf import settings
import logging, irc3
import logging
import irc3
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('bornhack.%s' % __name__)
@ -24,5 +25,5 @@ def do_work():
irc3.IrcBot(**config).run(forever=True)
except Exception as E:
logger.exception("Got exception inside do_work for %s" % self.workermodule)
raise
raise E