From bf03039df020b615a4546c2f032165c74833715f Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 18:25:22 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 93f096a9..049ab015 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -61,7 +61,7 @@ class GdriveSync(plugins.Plugin): if not self.backup: # Use self.options['backup_folder'] as the folder ID where backups are stored backup_folder_id = self.get_folder_id_by_name(self.drive, self.options['backup_folder']) - if backup_folder_id is None: + if not backup_folder_id: # If the folder doesn't exist, create it folder = self.drive.CreateFile( {'title': self.options['backup_folder'], 'mimeType': 'application/vnd.google-apps.folder'})