Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-13 15:20:54 +02:00
parent ae4f1340ad
commit 9b5fc8a9b3

View File

@ -50,7 +50,6 @@ class GdriveSync(plugins.Plugin):
if not os.path.exists("/root/.gdrive-backup"): if not os.path.exists("/root/.gdrive-backup"):
self.backup = False self.backup = False
try:
gauth = GoogleAuth(settings_file="/root/settings.yaml") gauth = GoogleAuth(settings_file="/root/settings.yaml")
gauth.LoadCredentialsFile("/root/credentials.json") gauth.LoadCredentialsFile("/root/credentials.json")
if gauth.credentials is None: if gauth.credentials is None:
@ -114,9 +113,6 @@ class GdriveSync(plugins.Plugin):
# all set, gdriveSync is ready to run # all set, gdriveSync is ready to run
self.ready = True self.ready = True
logging.info("[gdrivesync] loaded") logging.info("[gdrivesync] loaded")
except Exception as e:
logging.error(f"Error: {e}")
self.ready = False
def on_unload(self, ui): def on_unload(self, ui):
logging.info("[gdrivesync] unloaded") logging.info("[gdrivesync] unloaded")