Skip to content

Commit a205cf8

Browse files
committed
fix
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 20d6f5b commit a205cf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cyclonedx_py/_internal/utils/mimetypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def guess_type(file_name: str) -> Optional[str]:
5252
"""
5353
file_name_l = file_name.lower()
5454
base, ext = splitext(file_name_l)
55+
if ext == '':
56+
return None
5557
if base in _LICENSE_FNAME_BASE and ext in _LICENSE_FNAME_EXT:
5658
return _MIME_TEXT_PLAIN
5759
return _MAP_EXT_MIME.get(ext) \

0 commit comments

Comments
 (0)