Commit 68baeb0a authored by Jérome Perrin's avatar Jérome Perrin

XXX some filter_type_dict does not exist with Libreoffice7

parent bb75fef1
...@@ -147,6 +147,8 @@ class MimeMapper(object): ...@@ -147,6 +147,8 @@ class MimeMapper(object):
ui_name = value.get('UIName') ui_name = value.get('UIName')
filter_type = value.get('Type') filter_type = value.get('Type')
filter_type_dict = type_dict.get(filter_type) filter_type_dict = type_dict.get(filter_type)
if filter_type_dict is None:
continue
if not ui_name: if not ui_name:
ui_name = filter_type_dict.get("UIName") ui_name = filter_type_dict.get("UIName")
if ui_name in ooo_disable_filter_name_list or 'Template' in ui_name: if ui_name in ooo_disable_filter_name_list or 'Template' in ui_name:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment