Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 20d0ea7

Browse files
committed
Fix S310 Audit url open for permitted schemes.
1 parent d444719 commit 20d0ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

camelot/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def download_url(url: str) -> StrByteType | Path:
112112
"Accept-Encoding": "gzip;q=1.0, deflate;q=0.9, br;q=0.8, compress;q=0.7, *;q=0.1",
113113
}
114114
request = Request(url, None, headers)
115-
obj = urlopen(request)
115+
obj = urlopen(request) # noqa S310
116116
content_type = obj.info().get_content_type()
117117
if content_type != "application/pdf":
118118
raise NotImplementedError("File format not supported")

0 commit comments

Comments
 (0)