Skip to content

Commit f4bc0d8

Browse files
committed
Don't fail collection test if something unexpected happened
1 parent 38953e2 commit f4bc0d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fiboa_cli/validate.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,8 @@ def validate_colletion_schema(obj):
264264
log(f"Collection: {error.path}: {error.message}", "error")
265265

266266
return len(errors) == 0
267-
except:
268-
log("Failed to validate STAC Collection", "warning")
269-
return False
267+
except Exception as e:
268+
log(f"Failed to validate STAC Collection due to an internal error: {e}", "warning")
270269

271270
return True
272271

0 commit comments

Comments
 (0)