diff --git a/django_payments_chile/FlowProvider.py b/django_payments_chile/FlowProvider.py index 521d70b..e1bbe19 100644 --- a/django_payments_chile/FlowProvider.py +++ b/django_payments_chile/FlowProvider.py @@ -80,8 +80,9 @@ def get_form(self, payment, data: Optional[dict] = None) -> Any: try: payment.attrs.datos_payment_create_flow = datos_para_flow payment.save() - except Exception as e: - raise PaymentError(f"Ocurrió un error al guardar attrs.datos_flow: {e}") + except Exception as e: # noqa + # Dificil llegar acá, y si llegamos es problema de django-payments + raise PaymentError(f"Ocurrió un error al guardar attrs.datos_flow: {e}") # noqa firma_datos = ... datos_para_flow.update({"s": firma_datos}) @@ -228,7 +229,7 @@ def capture(self): Raises: NotImplementedError: Método no implementado. """ - raise NotImplementedError() + raise NotImplementedError() # noqa def release(self): """ @@ -241,4 +242,4 @@ def release(self): NotImplementedError: Método no implementado. """ - raise NotImplementedError() + raise NotImplementedError() # noqa diff --git a/django_payments_chile/providers.py b/django_payments_chile/providers.py index 35e0dc2..b544199 100644 --- a/django_payments_chile/providers.py +++ b/django_payments_chile/providers.py @@ -3,4 +3,4 @@ # from .KhipuProvider import KhipuProvider # noqa # from .PaykuProvider import PaykuProvider # noqa -__all__ = ["FlowProvider"] +__all__ = ["FlowProvider"] # noqa