0001-payfip_ws-encapsulate-requests-exceptions-in-PayFiPE.patch
eopayment/payfip_ws.py | ||
---|---|---|
23 | 23 |
import os |
24 | 24 |
import random |
25 | 25 |
import re |
26 |
import requests |
|
26 | 27 |
import unicodedata |
27 | 28 |
import xml.etree.ElementTree as ET |
28 | 29 | |
... | ... | |
132 | 133 |
except zeep.exceptions.Fault as fault: |
133 | 134 |
raise self.fault_to_exception(fault) or PayFiPError('unknown', fault.message, fault) |
134 | 135 |
except zeep.exceptions.Error as zeep_error: |
135 |
raise PayFiPError('erreur-soap', str(zeep_error), zeep_error) |
|
136 |
raise PayFiPError('SOAP error', str(zeep_error), zeep_error) |
|
137 |
except requests.RequestError as e: |
|
138 |
raise PayFiPError('HTTP error', e) |
|
139 |
except Exception as e: |
|
140 |
raise PayFiPError('Unexpected error', e) |
|
136 | 141 | |
137 | 142 |
def get_info_client(self, numcli): |
138 | 143 |
return self._perform( |
139 |
- |