Skip to content

Commit 1aae629

Browse files
committed
Improve docstring
1 parent 85233a1 commit 1aae629

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/prometheus/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
def __getattr__(name: str) -> Any:
77
"""
8-
Since utils imports settings, we lazy load any objects that we want to import to
9-
prevent Django's settings-at-import-time trap
8+
Since utils imports django.conf.settings, we lazy load any objects that
9+
we want to import to prevent django.core.exceptions.ImproperlyConfigured
10+
due to settings not being configured.
1011
"""
1112
if name in _utils:
1213
from common.prometheus import utils

0 commit comments

Comments
 (0)