From 7c16737fabd0455e32c0388cb4d24d2f2b343595 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Tue, 6 Aug 2024 14:59:10 -0400 Subject: [PATCH] Appease sonar return nothing instead of false --- app/classes/shared/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index 828aa019..6aec5fc4 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -1385,7 +1385,7 @@ class ServerInstance: ) logger.error(f"Back config does not exist for {self.name}. Update Failed.") self.stats_helper.set_update(False) - return False + return was_started = "-1" # Get default backup configuration backup_config = HelpersManagement.get_default_server_backup(self.server_id) @@ -1442,7 +1442,7 @@ class ServerInstance: "Backup failed for " + self.name + ". canceling update.", ) self.stats_helper.set_update(False) - return False + return # lets download the files if HelperServers.get_server_type_by_id(self.server_id) != "minecraft-bedrock":