Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Use getattr() to get _cached_data from request #36

Merged
merged 2 commits into from
Aug 27, 2015

Conversation

mkiwala
Copy link
Contributor

@mkiwala mkiwala commented Aug 27, 2015

This PR avoids accessing the _cached_data when it does not exist.

The bug wasn't caught by our tests because there are no negative tests for our logged_response wrapper.

@davidlmorton
Copy link
Contributor

Lets pformat on the line where we save 'cached_data' that way it always looks readable.

@mkiwala
Copy link
Contributor Author

mkiwala commented Aug 27, 2015

Good idea.

mkiwala added a commit that referenced this pull request Aug 27, 2015
Use getattr() to get _cached_data from request
@mkiwala mkiwala merged commit 3093e34 into genome:master Aug 27, 2015
@mkiwala mkiwala removed the in review label Aug 27, 2015
@mkiwala mkiwala deleted the cached_data_logging branch August 27, 2015 17:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants