We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b88ba6 commit e034663Copy full SHA for e034663
caso/extract/manager.py
@@ -178,12 +178,14 @@ def voms_map(self):
178
"Using deprecated 'tenant' mapping, please "
179
"use 'projects' instead",
180
DeprecationWarning,
181
+ stacklevel=2,
182
)
183
if tenants:
184
warnings.warn(
185
"Using deprecated 'tenants' mapping, please "
186
187
188
189
190
tenants.append(tenant)
191
projects = vomap.get("projects", tenants)
caso/messenger/ssm.py
@@ -182,5 +182,5 @@ def __init__(self):
"'ssm' as messenger instead in order to use the latest "
"version."
- warnings.warn(msg, DeprecationWarning)
+ warnings.warn(msg, DeprecationWarning, stacklevel=2)
super(SSMMessengerV04, self).__init__()
0 commit comments