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 26a1084 commit d19110cCopy full SHA for d19110c
elasticsearch/_sync/client/utils.py
@@ -433,9 +433,11 @@ def wrapped(*args: Any, **kwargs: Any) -> Any:
433
category=GeneralAvailabilityWarning,
434
stacklevel=warn_stacklevel(),
435
)
436
- elif stability == Stability.DEPRECATED:
+ elif stability == Stability.DEPRECATED and message and version:
437
warnings.warn(
438
- message, category=DeprecationWarning, stacklevel=warn_stacklevel()
+ f"In elasticsearch-py {version}, {message}.",
439
+ category=DeprecationWarning,
440
+ stacklevel=warn_stacklevel(),
441
442
443
return api(*args, **kwargs)
0 commit comments