diff --git a/sharpy/__init__.py b/sharpy/__init__.py index 5d35608..73dbc55 100644 --- a/sharpy/__init__.py +++ b/sharpy/__init__.py @@ -1 +1 @@ -VERSION = (0, 9, 5) +VERSION = (0, 9, 6) diff --git a/sharpy/client.py b/sharpy/client.py index d2b3770..579faee 100644 --- a/sharpy/client.py +++ b/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]'] + ccNum = cleaned_data['subscription[ccNumber]'] + cleaned_data['subscription[ccNumber]'] = ccNum[-4:] except KeyError: - pass - ccNum = cleaned_data['subscription[ccNumber]'] - cleaned_data['subscription[ccNumber]'] = ccNum[-4:] - + cleaned_data['subscription[ccNumber]'] = None client_log.debug('Request Method: %s' % method) client_log.debug('Request Body (Cleaned Data): %s' % cleaned_data)