Skip to content

Commit e0cc064

Browse files
committed
removed the redundant hasattr check
1 parent acfd278 commit e0cc064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deep_code/tools/publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def publish(
590590
# Publish STAC catalog + item to S3 when stac_catalog_s3_root is configured.
591591
# This is independent of the GitHub PR and happens immediately.
592592
stac_catalog_s3_root = self.dataset_config.get("stac_catalog_s3_root")
593-
if stac_catalog_s3_root and hasattr(self, "_last_generator"):
593+
if stac_catalog_s3_root:
594594
logger.info(
595595
f"Publishing STAC catalog to S3: {stac_catalog_s3_root}"
596596
)

0 commit comments

Comments
 (0)