Skip to content

Commit 260ca49

Browse files
authored
fix format string
1 parent 5daa03d commit 260ca49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/acquisition/fluview/fluview.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@ def get_tier_ids(name):
9595
location_ids[Key.TierType.hhs] = sorted(set(location_ids[Key.TierType.hhs]))
9696
num = len(location_ids[Key.TierType.hhs])
9797
if num != 10:
98-
raise Exception('expected 10 hhs regions, found %s' % num)
98+
raise Exception('expected 10 hhs regions, found %d' % num)
9999

100100
for row in data[Key.TierListEntry.cen]:
101101
location_ids[Key.TierType.cen].append(row[Key.TierIdEntry.cen])
102102
location_ids[Key.TierType.cen] = sorted(set(location_ids[Key.TierType.cen]))
103103
num = len(location_ids[Key.TierType.cen])
104104
if num != 9:
105-
raise Exception('expected 9 census divisions, found %s' % num)
105+
raise Exception('expected 9 census divisions, found %d' % num)
106106

107107
for row in data[Key.TierListEntry.sta]:
108108
location_ids[Key.TierType.sta].append(row[Key.TierIdEntry.sta])
109109
location_ids[Key.TierType.sta] = sorted(set(location_ids[Key.TierType.sta]))
110110
num = len(location_ids[Key.TierType.sta])
111111
if num != 57:
112-
raise Exception('expected 57 states/territories/cities, found %s' % num)
112+
raise Exception('expected 57 states/territories/cities, found %d' % num)
113113

114114
# return a useful subset of the metatdata
115115
return {

0 commit comments

Comments
 (0)