Skip to content

Commit

Permalink
codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Dec 13, 2024
1 parent 167b1e3 commit 55ecbb3
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 254 deletions.
4 changes: 2 additions & 2 deletions django_payments_chile/FlowProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_form(self, payment, data: Optional[dict] = None) -> Any:
firma_datos = ...
datos_para_flow.update({"s": firma_datos})
try:
pago_req = requests.post(f"{self.api_endpoint}/payment/create", data=datos_para_flow)
pago_req = requests.post(f"{self.api_endpoint}/payment/create", data=datos_para_flow, timeout=5)
pago_req.raise_for_status()

except Exception as pe:
Expand Down Expand Up @@ -140,7 +140,7 @@ def actualiza_estado(self, payment) -> dict:
"""
try:
# status = FlowPayment.getStatus(self._client, payment.transaction_id)
estado_req = requests.post(f"{self.api_endpoint}/payment/getStatus")
estado_req = requests.post(f"{self.api_endpoint}/payment/getStatus", timeout=5)
estado_req.raise_for_status()

except Exception as e:
Expand Down
Loading

0 comments on commit 55ecbb3

Please sign in to comment.