Fix config.py
This commit is contained in:
parent
5dd53df0ff
commit
e5956e80a3
2 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ matrix:
|
||||||
include:
|
include:
|
||||||
- language: python
|
- language: python
|
||||||
python:
|
python:
|
||||||
- "3.5"
|
|
||||||
- "3.6"
|
- "3.6"
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get -y install software-properties-common
|
- sudo apt-get -y install software-properties-common
|
||||||
|
|
|
@ -23,7 +23,7 @@ def docker_config() -> Dict:
|
||||||
'POSTGRES_HOST',
|
'POSTGRES_HOST',
|
||||||
'ESEARCH_HOST'
|
'ESEARCH_HOST'
|
||||||
]:
|
]:
|
||||||
if not os.getenv(key, False) and os.getenv('CI') != 'true':
|
if not os.getenv(key, False):
|
||||||
raise errors.ConfigError(f'Environment variable "{key}" not set')
|
raise errors.ConfigError(f'Environment variable "{key}" not set')
|
||||||
return {
|
return {
|
||||||
'debug': True,
|
'debug': True,
|
||||||
|
|
Reference in a new issue