Skip to content

Commit 205c061

Browse files
committed
with UT sex subsets getting filled, error on missing groups again
1 parent 9431489 commit 205c061

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/acquisition/flusurv/flusurv_update.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,9 @@ def update(fetcher, location, test_mode=False):
148148
# Remove the season description since we also store it in each epiweek obj
149149
unexpected_groups = data[epiweek].keys() - EXPECTED_GROUPS - {"season"}
150150
if len(missing_expected_groups) != 0:
151-
# Not all groups are available for all geos, e.g. UT in 2022-23 doesn't have
152-
# sex breakdowns.
153-
warn(
151+
raise Exception(
154152
f"{location} {epiweek} data is missing group(s) {missing_expected_groups}"
155153
)
156-
for group in missing_expected_groups:
157-
data[epiweek][group] = None
158154
if len(unexpected_groups) != 0:
159155
raise Exception(
160156
f"{location} {epiweek} data includes new group(s) {unexpected_groups}"

0 commit comments

Comments
 (0)