* Cleanup

This commit is contained in:
Phil Zhitnikov 2023-11-02 20:42:28 +04:00
parent b210c8eebe
commit b92c172055

View File

@ -7,7 +7,6 @@ from urllib.parse import urljoin
import requests import requests
from django.conf import settings from django.conf import settings
from django.core.files.base import ContentFile from django.core.files.base import ContentFile
from requests import Request
from store.utils import is_migration_running from store.utils import is_migration_running
@ -32,7 +31,7 @@ class CDEKClient:
def request(self, method, url, *args, **kwargs): def request(self, method, url, *args, **kwargs):
joined_url = urljoin(self.api_url, url) joined_url = urljoin(self.api_url, url)
request = Request(method, joined_url, *args, **kwargs) request = requests.Request(method, joined_url, *args, **kwargs)
retries = 0 retries = 0
while retries < self.MAX_RETRIES: while retries < self.MAX_RETRIES: