Features: 1) Update save_response method to support data as both dictionary or list;

Fixes: ;

Extra: ;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-10-15 16:17:03 +03:00
parent 996362d9f1
commit d355045755

View file

@ -97,7 +97,7 @@ class AbstractVendor:
def __str__(self) -> str:
return self.vendor_name or self.get_vendor_instance().name
def save_response(self, data: dict[Any, Any]) -> None:
def save_response(self, data: dict[Any, Any] | list[Any]) -> None:
with suppress(Exception):
if settings.DEBUG or config.SAVE_VENDORS_RESPONSES:
import gzip