diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 2485468a..eca516a7 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -52,9 +52,10 @@ class GdriveSync(plugins.Plugin): try: gauth = GoogleAuth(settings_file="/root/settings.yaml") - gauth = gauth.LoadCredentialsFile("/root/credentials.json") + gauth.LoadCredentialsFile("/root/credentials.json") gauth.Authorize() + # Create GoogleDrive instance self.drive = GoogleDrive(gauth)