diff --git a/src/ircbot/admin.py b/src/ircbot/admin.py index 91278423..eff2cb89 100644 --- a/src/ircbot/admin.py +++ b/src/ircbot/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from .models import * +from .models import OutgoingIrcMessage admin.site.register(OutgoingIrcMessage) diff --git a/src/ircbot/apps.py b/src/ircbot/apps.py index d057f8c7..54a5147b 100644 --- a/src/ircbot/apps.py +++ b/src/ircbot/apps.py @@ -1,5 +1,3 @@ - - from django.apps import AppConfig diff --git a/src/ircbot/ircworker.py b/src/ircbot/ircworker.py index 94fac174..b0afd363 100644 --- a/src/ircbot/ircworker.py +++ b/src/ircbot/ircworker.py @@ -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