From 1f0b6b759003120b2f3664050067cf1048361d06 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 15:13:42 +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 5637055e..13572d87 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -163,7 +163,7 @@ class GdriveSync(plugins.Plugin): def upload_to_gdrive(self, backup_path, gdrive_folder): try: existing_folder = self.get_folder_id_by_name(self.drive, gdrive_folder) - if existing_folder: + if existing_folder is not None: folder = self.drive.CreateFile({'id': existing_folder}) else: # Create a folder on Google Drive if it doesn't exist