Skip to content

Commit

Permalink
- added default for rates file
Browse files Browse the repository at this point in the history
  • Loading branch information
rptmat57 committed Apr 24, 2020
1 parent 508e547 commit 9a72ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion NEMO/rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def load_rates(self):
if not self.rates:
json_data = None
try:
json_data = open(settings.RATES_FILE)
rates_file = getattr(settings, 'RATES_FILE', settings.MEDIA_ROOT + '/rates.json')
json_data = open(rates_file)
self.rates = json.load(json_data)
logger.info("found rates file and loaded rates")
except AttributeError:
Expand Down
2 changes: 0 additions & 2 deletions resources/splash_pad_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,3 @@
'url': 'https://identity.example.org/',
'domains': [],
}

RATES_FILE = MEDIA_ROOT + '/rates.json'

0 comments on commit 9a72ba0

Please sign in to comment.