Skip to content

Commit a679ffe

Browse files
committed
Apply Steve advice
1 parent a2c92e8 commit a679ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/mimetypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def add_type(self, type, ext, strict=True):
9090
list of standard types, else to the list of non-standard
9191
types.
9292
"""
93-
if not type and ext in self.types_map[strict]:
94-
type = self.types_map[strict][ext]
93+
if not type:
94+
return
9595
self.types_map[strict][ext] = type
9696
exts = self.types_map_inv[strict].setdefault(type, [])
9797
if ext not in exts:

0 commit comments

Comments
 (0)