Skip to content

Commit

Permalink
use httpx instead of requests
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed May 11, 2024
1 parent caa4d36 commit 24d2495
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dvuploader/dvuploader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
from urllib.parse import urljoin
import requests
import httpx
import os
import rich
from typing import Dict, List, Optional
Expand Down Expand Up @@ -170,7 +170,6 @@ async def _validate_and_hash_files(self, verbose: bool):
)

with progress:

tasks = [
self._validate_and_hash_file(
file=file, progress=progress, task_id=task, verbose=self.verbose
Expand Down Expand Up @@ -337,7 +336,7 @@ def _has_direct_upload(
)

# Send HTTP request
response = requests.get(query)
response = httpx.get(query)

if response.status_code == 404:
return False
Expand Down

0 comments on commit 24d2495

Please sign in to comment.