From a0a2e5202367d4c5a273f40d0bf2e08a1dcf5283 Mon Sep 17 00:00:00 2001 From: Hafitz Setya <71178188+breakdowns@users.noreply.github.com> Date: Tue, 23 Mar 2021 09:04:20 +0700 Subject: [PATCH] Update __init__.py --- bot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index ca9c0cb67b9..3caaeb5a21b 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -120,7 +120,7 @@ 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') @@ -128,7 +128,7 @@ def getConfig(name: str): 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: