From b4a9baec886841ae79ebc062db09d661d3d90869 Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Wed, 8 Dec 2021 18:35:45 -0800 Subject: [PATCH] fix formatting (#305) --- django_prometheus/exports.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/django_prometheus/exports.py b/django_prometheus/exports.py index 3acd2660..f88bc218 100644 --- a/django_prometheus/exports.py +++ b/django_prometheus/exports.py @@ -115,8 +115,10 @@ def ExportToDjangoView(request): You can use django_prometheus.urls to map /metrics to this view. """ - if ("PROMETHEUS_MULTIPROC_DIR" in os.environ - or "prometheus_multiproc_dir" in os.environ): + if ( + "PROMETHEUS_MULTIPROC_DIR" in os.environ + or "prometheus_multiproc_dir" in os.environ + ): registry = prometheus_client.CollectorRegistry() multiprocess.MultiProcessCollector(registry) else: