We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15170c1 commit f2da9efCopy full SHA for f2da9ef
services/dask-sidecar/src/simcore_service_dask_sidecar/utils/files.py
@@ -150,7 +150,8 @@ def check_need_unzipping(
150
Checks if the source URL points to a zip file and if the target mime type is not zip.
151
If so, extraction is needed.
152
"""
153
- src_mime_type, _ = mimetypes.guess_type(f"{src_url.path}")
+ assert src_url.path # nosec
154
+ src_mime_type, _ = mimetypes.guess_type(src_url.path)
155
dst_mime_type = target_mime_type
156
if not dst_mime_type:
157
dst_mime_type, _ = mimetypes.guess_type(dst_path)
0 commit comments