diff --git a/harvester/cde_harvester/dataset.py b/harvester/cde_harvester/dataset.py index c792beb3..d6e88011 100644 --- a/harvester/cde_harvester/dataset.py +++ b/harvester/cde_harvester/dataset.py @@ -252,7 +252,10 @@ def get_platform_code(self): platform_vocabulary = self.globals.get("platform_vocabulary") if not (platform and platform_vocabulary): - return None + self.logger.debug( + "Found platform without platform_vocabulary, setting platform to 'unknown'" + ) + return "unknown" if "ioos" in platform_vocabulary: try: