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:]