Skip to content

Fix UnboundLocalError for key#1900

Merged
mrocklin merged 1 commit intodask:masterfrom
jakirkham:fix_ts_key_1442
Apr 5, 2018
Merged

Fix UnboundLocalError for key#1900
mrocklin merged 1 commit intodask:masterfrom
jakirkham:fix_ts_key_1442

Conversation

@jakirkham
Copy link
Copy Markdown
Member

Appears key in this context was not necessarily defined, which caused some errors to bubble up from the scheduler. From context, it seems like this should be ts.key. So this changes it to ts.key.

Appears `key` in this context was not necessarily defined, which caused
some errors to bubble up from the scheduler. From context, it seems like
this should be `ts.key`. So this changes it to `ts.key`.
@mrocklin
Copy link
Copy Markdown
Member

mrocklin commented Apr 4, 2018

Interesting. How did you run across this? I'm somewhat surprised that this was caught neither by tests nor a linter.

@jakirkham
Copy link
Copy Markdown
Member Author

From running into a different error that I've yet to diagnose.

@jakirkham
Copy link
Copy Markdown
Member Author

FWIW key is used in for-loops earlier. Just never defined independently of a looping variable. So that could have confused the code linter maybe.

@mrocklin mrocklin merged commit eaf1a03 into dask:master Apr 5, 2018
@jakirkham jakirkham deleted the fix_ts_key_1442 branch April 5, 2018 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants