fix
This commit is contained in:
parent
1373d5da05
commit
43f125418e
4
alive.py
4
alive.py
|
|
@ -10,14 +10,14 @@ from dotenv import load_dotenv
|
|||
load_dotenv('config.env')
|
||||
|
||||
try:
|
||||
BASE_URL = getConfig('BASE_URL_OF_BOT')
|
||||
BASE_URL = os.environ.get('BASE_URL_OF_BOT')
|
||||
if len(BASE_URL) == 0:
|
||||
BASE_URL = None
|
||||
except KeyError:
|
||||
BASE_URL = None
|
||||
|
||||
try:
|
||||
IS_VPS = getConfig('IS_VPS')
|
||||
IS_VPS = os.environ.get('IS_VPS')
|
||||
if IS_VPS.lower() == 'true':
|
||||
IS_VPS = True
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue