Skip to content

Conversation

@galitskyd
Copy link

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
# (remove ccv and only show last four of card num)
cleaned_data = data.copy()
try:
del cleaned_data['subscription[ccCardCode]']
Copy link

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.

3 participants