Skip to content

Commit

Permalink
Flag FORCE obsolete check
Browse files Browse the repository at this point in the history
  • Loading branch information
dechjo committed Mar 11, 2021
1 parent a39fd1b commit 0c173ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
'BEACON_NODE',
'POOL_CONTRACT',
]
if os.getenv('FORCE'):
logging.error('The flag "FORCE" is obsolete in favour of '
'"FORCE_DO_NOT_USE_IN_PRODUCTION", '
'please NEVER use it in production')
exit(1)

missing = []
for env in envs:
if env not in os.environ or os.environ[env] == '':
Expand Down

0 comments on commit 0c173ba

Please sign in to comment.