Skip to content

Commit

Permalink
Return None when a SOAP request fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonklo committed May 29, 2012
1 parent 2a1a9a6 commit 987fb75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion payex/handlers.py
Expand Up @@ -90,7 +90,8 @@ def _send_request(self):
resp = self._endpoint(**params)
logger.debug(resp)
except WebFault, e:
logger.exception(e)
logger.exception('An error occurred while making the SOAP request.')
return None

# Convert XML response into a dictionary
self.response = XmlDictConfig(ElementTree.XML(smart_str(resp)))
Expand Down

0 comments on commit 987fb75

Please sign in to comment.