Merge pull request #278 from danielwelch/master

fix usage of iter_entry_points
This commit is contained in:
Ilan Steemers
2017-12-08 08:54:26 +01:00
committed by GitHub
+4 -4
View File
@@ -216,10 +216,10 @@ if Conf.ERROR_REPORTER:
# iterate through the configured error reporters,
# and instantiate an ErrorReporter using the provided config
for name, conf in error_conf.items():
Reporter = pkg_resources.iter_entry_points(
'djangoq.errorreporters', name).load()
e = Reporter(**conf)
reporters.append(e)
for entry in pkg_resources.iter_entry_points(
'djangoq.errorreporters', name):
Reporter = entry.load()
reporters.append(Reporter(**conf))
error_reporter = ErrorReporter(reporters)
except ImportError:
error_reporter = None