Skip to content

Fix keyerror - #7

Merged
galitskyd merged 2 commits into
masterfrom
fix-keyerror
Jun 19, 2016
Merged

galitskyd merged 2 commits into
masterfrom
fix-keyerror

Conversation

@galitskyd

Copy link
Copy Markdown

No description provided.

@galitskyd
galitskyd merged commit 4fd8093 into master Jun 19, 2016
@galitskyd
galitskyd deleted the fix-keyerror branch June 19, 2016 02:08
Comment thread sharpy/client.py
@@ -102,11 +102,10 @@ def make_request(self, path, params=None, data=None, method=None):
cleaned_data = data.copy()
try:
del cleaned_data['subscription[ccCardCode]']

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, you can use cleaned_data.pop('subscription[ccCardCode]') which will remove the value without a KeyError.

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