Features: 1) Update save_response method to support data as both dictionary or list;
Fixes: ; Extra: ;
This commit is contained in:
parent
996362d9f1
commit
d355045755
1 changed files with 1 additions and 1 deletions
2
core/vendors/__init__.py
vendored
2
core/vendors/__init__.py
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue