From b276101f53fae6d3e80d78a310c8c55774b35cce Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 27 Mar 2023 19:27:31 -0400 Subject: [PATCH] [156] fix styles --- VERSION | 2 +- modules/meta.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 0e312954..ccb77600 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop155 +1.18.3-develop156 diff --git a/modules/meta.py b/modules/meta.py index b0651680..08795dad 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -677,9 +677,8 @@ class MetadataFile(DataFile): raise Failed("Image Section Error: Section Data styles attribute is empty") default_style = None for sk, sv in styles.items(): - if sv: - default_style = sk - break + default_style = sk + break if not default_style: raise Failed(f"Image Section Error: No styles found for section: {section_key}") use_key = None