Hints and lints

This commit is contained in:
Ilan Steemers
2020-06-15 16:02:14 +02:00
parent 70a3296a6f
commit 6e95dc2d9b
4 changed files with 31 additions and 28 deletions
+1 -6
View File
@@ -1,6 +1,4 @@
import logging
# external
import os
from copy import deepcopy
from multiprocessing import cpu_count
@@ -8,11 +6,8 @@ from signal import signal
import pkg_resources
from django.conf import settings
# django
from django.utils.translation import gettext_lazy as _
# local
from django_q.queues import Queue
# optional
@@ -216,7 +211,7 @@ if Conf.ERROR_REPORTER:
# and instantiate an ErrorReporter using the provided config
for name, conf in error_conf.items():
for entry in pkg_resources.iter_entry_points(
"djangoq.errorreporters", name
"djangoq.errorreporters", name
):
Reporter = entry.load()
reporters.append(Reporter(**conf))