Skip to content

Commit

Permalink
add warning to log
Browse files Browse the repository at this point in the history
  • Loading branch information
n-a-t-e committed Feb 22, 2024
1 parent ef918ab commit 1230c5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions harvester/cde_harvester/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def get_platform_code(self):
platform_vocabulary = self.globals.get("platform_vocabulary")

if not (platform and platform_vocabulary):
self.logger.debug(
"Found platform without platform_vocabulary, setting platform to 'unknown'"
)
return "unknown"

if "ioos" in platform_vocabulary:
Expand Down

0 comments on commit 1230c5e

Please sign in to comment.