Skip to content

Commit

Permalink
Cleanup new exception traceback (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishanBhasin authored Sep 28, 2020
1 parent 4dd0e1b commit a968158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/comm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ def handshake_configuration(local, remote):
local["pickle-protocol"], remote["pickle-protocol"]
)
}
except KeyError:
except KeyError as e:
raise ValueError(
"Your Dask versions may not be in sync. "
"Please ensure that you have the same version of dask "
"and distributed on your client, scheduler, and worker machines"
)
) from e

if local["compression"] == remote["compression"]:
out["compression"] = local["compression"]
Expand Down

0 comments on commit a968158

Please sign in to comment.