File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments