Skip to content

Commit 7a22aa3

Browse files
committed
mypy
1 parent 8da801a commit 7a22aa3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stac_validator/validate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,9 @@ def recursive_validator(self, stac_type: str) -> bool:
642642
err_msg=err_msg,
643643
error_obj=e,
644644
schema_uri=(
645-
e.schema.get("$id", "") if hasattr(e, "schema") else ""
645+
e.schema.get("$id", "")
646+
if hasattr(e, "schema") and isinstance(e.schema, dict)
647+
else ""
646648
),
647649
)
648650
)

0 commit comments

Comments
 (0)