mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-16 02:03:02 -07:00
Updated msys2
This commit is contained in:
parent
6a85995508
commit
f0dc1ea8b0
13308 changed files with 689276 additions and 46605 deletions
|
@ -248,7 +248,10 @@ none_magic.load()
|
|||
|
||||
|
||||
def _create_filemagic(mime_detected, type_detected):
|
||||
mime_type, mime_encoding = mime_detected.split('; ')
|
||||
try:
|
||||
mime_type, mime_encoding = mime_detected.split('; ')
|
||||
except ValueError:
|
||||
raise ValueError(mime_detected)
|
||||
|
||||
return FileMagic(name=type_detected, mime_type=mime_type,
|
||||
encoding=mime_encoding.replace('charset=', ''))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue