Skip to content

Commit

Permalink
Update deprecation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zbenmo authored Apr 1, 2024
1 parent c8640cb commit a7767e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/_utils/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def decorate(function: Callable[P, T]) -> Callable[P, T]:
@wraps(function)
def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
try:
param_args = kwargs.pop(old_name)
param_args = kwargs.pop(old_name, None)
except KeyError:
return function(*args, **kwargs)

Expand Down

0 comments on commit a7767e3

Please sign in to comment.