Skip to content

Commit

Permalink
fix formatting (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf authored Dec 9, 2021
1 parent 97d5748 commit b4a9bae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions django_prometheus/exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b4a9bae

Please sign in to comment.