Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Feb 1, 2021
1 parent 87f76aa commit 80dc6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-package/lightgbm/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@ def client(self, client: Client) -> None:

def _lgb_getstate(self) -> Dict[Any, Any]:
"""Remove un-picklable attributes before serialization."""
self._other_params.pop("client", None)
client = self.__dict__.pop("_client", None)
out = deepcopy(self.__dict__)
client = out.pop("_client", None)
self._other_params.pop("client", None)
self.client = client
return out

Expand Down

0 comments on commit 80dc6b9

Please sign in to comment.