Fixes pylint complaints
This commit is contained in:
parent
7811a9920e
commit
bc7aa91b97
|
@ -32,8 +32,11 @@ class BookwyrmConfig(AppConfig):
|
||||||
name = "bookwyrm"
|
name = "bookwyrm"
|
||||||
verbose_name = "BookWyrm"
|
verbose_name = "BookWyrm"
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def ready(self):
|
def ready(self):
|
||||||
|
"""set up OTLP and preview image files, if desired"""
|
||||||
if settings.OTEL_EXPORTER_OTLP_ENDPOINT:
|
if settings.OTEL_EXPORTER_OTLP_ENDPOINT:
|
||||||
|
# pylint: disable=import-outside-toplevel
|
||||||
from bookwyrm.telemetry import open_telemetry
|
from bookwyrm.telemetry import open_telemetry
|
||||||
|
|
||||||
open_telemetry.instrumentDjango()
|
open_telemetry.instrumentDjango()
|
||||||
|
|
Loading…
Reference in New Issue