Skip to content

Commit

Permalink
linting and fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
perolavsvendsen committed Nov 2, 2023
1 parent de3d73d commit 45a718d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fmu/dataio/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ def _check_global_config(

if "stratigraphic_alias" in item:
if not isinstance(item["stratigraphic_alias"], list):
msg += f"stratigraphy.{key}: 'stratigraphic_alias' must be a list."
msg += f"stratigraphy.{key}: 'stratigraphic_alias' must be list.\n"
else:
for alias in item["stratigraphic_alias"]:
if not isinstance(alias, str):
msg += f"stratigraphy.{key}: 'stratigraphic_alias' items must be strings"
msg += f"stratigraphy.{key}: 'stratigraphic_alias' items "
msg += "must be strings.\n"

if msg:
if "err" in action:
Expand Down

0 comments on commit 45a718d

Please sign in to comment.