Skip to content

Commit 7c0d4b2

Browse files
committed
fixed import
1 parent 8cba605 commit 7c0d4b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

coderdata/download/downloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from os import PathLike
55
import os
66
import requests
7+
import warnings
78

89
def download(
910
name: str=None,
@@ -86,7 +87,7 @@ def download(
8687
with requests.get(file_url, stream=True) as r:
8788
r.raise_for_status()
8889
if file_name.exists() and not exist_ok:
89-
os.warn(
90+
warnings.warn(
9091
f"{file_name} already exists. Use argument 'exist_ok=True'"
9192
"to overwrite existing file."
9293
)

0 commit comments

Comments
 (0)