New GitHub issue #96264 from HGStyle:<br>

<hr>

<pre>
Hi, when i call the function "guess_extension" from the mimetypes module, i get an error : 
```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hg/Bureau/ezConverter/module.py", line 14, in getRealExtension
    currentext = mime.guess_extension(x[0])
  File "/usr/lib/python3.9/mimetypes.py", line 326, in guess_extension
    return _db.guess_extension(type, strict)
  File "/usr/lib/python3.9/mimetypes.py", line 192, in guess_extension
    extensions = self.guess_all_extensions(type, strict)
  File "/usr/lib/python3.9/mimetypes.py", line 171, in guess_all_extensions
    type = type.lower()
AttributeError: 'NoneType' object has no attribute 'lower'
```

I dont think it's my code. If you want it, ask me. Thanks in advance !
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/96264">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>