Skip to content

Commit

Permalink
Avoid unnecessary no-op git diff in app.py #37
Browse files Browse the repository at this point in the history
  • Loading branch information
richardimaoka committed Aug 14, 2016
1 parent a6e6c5c commit f4ddbb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ def __init__(self, file):
with open(file, 'r') as f:
self.cfg = json.load(f)

for section in ['OCTAV', 'GITHUB', 'REDIS_INFO', 'GOOGLE_MAP']:
for section in ['OCTAV', 'REDIS_INFO', 'GITHUB', 'GOOGLE_MAP']:
if not self.cfg.get(section):
raise Exception( "missing section '" + section + "' in config file '" + file + "'" )
if self.cfg.get('OCTAV').get('BASE_URI'):
raise Exception(
'DEPRECATED: {"OCTAV":{"BASE_URI"}} in config.json is deprecated.\
Please use {"OCTAV":{"endpoint"}} instead and remove {"OCTAV":{"BASE_URI"}}.')

Please use {"OCTAV":{"endpoint"}} instead and remove {"OCTAV":{"BASE_URI"}}.'
)

def section(self, name):
return self.cfg.get(name)
Expand Down

0 comments on commit f4ddbb8

Please sign in to comment.