Skip to content

Commit

Permalink
Merge pull request #127 from virginiacc/missing-fees-data
Browse files Browse the repository at this point in the history
Handle missing fees data
  • Loading branch information
virginiacc committed Apr 20, 2018
2 parents bd383a3 + 0fe0f6e commit fffe6d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ratechecker/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ def filename_prefix(self):

def load(self):
for key, loader_cls in self.loaders.items():
f = self.datafile(key)
try:
f = self.datafile(key)
except KeyError:
# The fees data is expected to be temporarily unavailable,
# so if the fees file is not found, we skip it and
# continue loading the other data types.
if key == 'fee':
continue
raise
loader = loader_cls(f, data_timestamp=self.timestamp)
loader.load()

Expand Down

0 comments on commit fffe6d6

Please sign in to comment.