Skip to content

Commit 8461d73

Browse files
author
Kevin Hannegan
committed
fix type errors
1 parent 25b6247 commit 8461d73

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

presalytics/lib/themes/ooxml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def get_configuration(self):
3939
client = presalytics.Client(**self.client_kwargs)
4040
theme = client.ooxml_automation.theme_themes_details_get_id(self.ooxml_id)
4141
extra_params = ['dateCreated', 'dateModified', 'userCreated', 'userModified', 'id', 'themeId']
42-
colors = {k: v for k, v in theme.colors.items() if k not in extra_params}
43-
fonts = {k: v for k, v in theme.fonts.items() if k not in extra_params}
42+
colors = {k: v for k, v in theme.colors.to_dict().items() if k not in extra_params}
43+
fonts = {k: v for k, v in theme.fonts.to_dict().items() if k not in extra_params}
4444
slide_details = client.ooxml_automation.slides_slides_details_get_id(theme.slide_id)
4545
color_map_dict = slide_details.slide_master["colorMap"]
4646
color_types = client.ooxml_automation.shared_colortypes_get()

presalytics/lib/tools/ooxml_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def create_outline_from_ooxml_document(story_api: 'Story',
160160
_themes = [create_theme_from_ooxml_document(ooxml_id, client_info=client_info)]
161161
except Exception:
162162
logger.error("Unable to add theme to ooxml_story", exc_info=True)
163+
_themes = []
163164

164165
if title:
165166
_title = title

0 commit comments

Comments
 (0)