We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e883fc commit 4ede31dCopy full SHA for 4ede31d
xarray/core/utils.py
@@ -1109,7 +1109,7 @@ def find_stack_level(test_mode=False) -> int:
1109
def emit_user_level_warning(message, category=None):
1110
"""Emit a warning at the user level by inspecting the stack trace."""
1111
stacklevel = find_stack_level()
1112
- warnings.warn(message, category=category, stacklevel=stacklevel)
+ return warnings.warn(message, category=category, stacklevel=stacklevel)
1113
1114
1115
def consolidate_dask_from_array_kwargs(
0 commit comments