forked from LBRYCommunity/lbry-sdk
fixes KeyError on missing synonyms
This commit is contained in:
parent
cab5f9188f
commit
96d1745232
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ def guess_media_type(path):
|
|||
log.debug(f"file {path} does not have extension, identified by contents as {realext}")
|
||||
|
||||
# don't do anything if extension is in synonyms
|
||||
if not extension in synonyms_map[realext]:
|
||||
if not extension in synonyms_map.get(realext, []):
|
||||
extension = realext
|
||||
|
||||
except OSError as error:
|
||||
|
|
Loading…
Reference in a new issue