From 357d8ed9769ca3d1ee579b5559dddfa1dad74a48 Mon Sep 17 00:00:00 2001 From: David Galitsky Date: Sat, 18 Jun 2016 14:34:01 -0400 Subject: [PATCH] update version number --- sharpy/__init__.py | 2 +- sharpy/client.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sharpy/__init__.py b/sharpy/__init__.py index 8ca9f33..5d35608 100644 --- a/sharpy/__init__.py +++ b/sharpy/__init__.py @@ -1 +1 @@ -VERSION = (0, 9, 4) +VERSION = (0, 9, 5) diff --git a/sharpy/client.py b/sharpy/client.py index d6eafbe..d2b3770 100644 --- a/sharpy/client.py +++ b/sharpy/client.py @@ -100,7 +100,10 @@ def make_request(self, path, params=None, data=None, method=None): # Clean credit card info from when the request gets logged # (remove ccv and only show last four of card num) cleaned_data = data.copy() - del cleaned_data['subscription[ccCardCode]'] + try: + del cleaned_data['subscription[ccCardCode]'] + except KeyError: + pass ccNum = cleaned_data['subscription[ccNumber]'] cleaned_data['subscription[ccNumber]'] = ccNum[-4:]