From d399972cabb30406f0ac1764d44d41b79e8ddf61 Mon Sep 17 00:00:00 2001 From: Petr Holub Date: Thu, 23 Nov 2023 13:15:03 +0100 Subject: [PATCH] updates --- exporter-mission-cancer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter-mission-cancer.py b/exporter-mission-cancer.py index b7e3ec8..55f8f42 100755 --- a/exporter-mission-cancer.py +++ b/exporter-mission-cancer.py @@ -235,7 +235,7 @@ def __call__(self, parser, namespace, values, option_string=None): pediatric = True if 'age_high' in collection and collection['age_high'] < age_max: pediatricOnly = True - log.debug("Pediatric-only collection detected: %s, age range: %d-%d, diags: %s"%(collection['id'], collection.get('age_low'), collection.get('age_high'), diags + diag_ranges)) + log.debug("Pediatric-only collection detected: %s, age range: %d-%d, diags: %s"%(collection['id'], (collection.get('age_low') if 'age_low' in collection else 0), collection.get('age_high'), diags + diag_ranges)) if cancer_diag: log.info(f"Cancer collection detected: {collection['id']}")