Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
breakdowns authored Mar 23, 2021
1 parent e54c041 commit a0a2e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ def getConfig(name: str):
try:
MEGA_API_KEY = getConfig('MEGA_API_KEY')
except KeyError:
LOGGER.warning('MEGA API KEY not provided!')
logging.warning('MEGA API KEY not provided!')
MEGA_API_KEY = None
try:
MEGA_EMAIL_ID = getConfig('MEGA_EMAIL_ID')
MEGA_PASSWORD = getConfig('MEGA_PASSWORD')
if len(MEGA_EMAIL_ID) == 0 or len(MEGA_PASSWORD) == 0:
raise KeyError
except KeyError:
LOGGER.warning('MEGA Credentials not provided!')
logging.warning('MEGA Credentials not provided!')
MEGA_EMAIL_ID = None
MEGA_PASSWORD = None
try:
Expand Down

0 comments on commit a0a2e52

Please sign in to comment.