Fixes
authorJohn Carr <john.carr@unrouted.co.uk>
Tue, 25 Jun 2024 14:15:25 +0000 (15:15 +0100)
committerJohn Carr <john.carr@unrouted.co.uk>
Tue, 25 Jun 2024 14:15:25 +0000 (15:15 +0100)
music_assistant/server/providers/filesystem_smb/__init__.py

index 1ad7d3efc70cf22c59a1745da42013fc1e106091..806898bc7c36b46eb9dc58c8649eff2983854cec 100644 (file)
@@ -220,7 +220,10 @@ class SMBFileSystemProvider(LocalFileSystemProvider):
             raise LoginFailed(msg)
 
         self.logger.info("Mounting //%s/%s%s to %s", server, share, subfolder, self.base_path)
-        self.logger.debug("Using mount command: %s", mount_cmd.replace(password, "########"))
+        self.logger.debug(
+            "Using mount command: %s",
+            [m.replace(password, "########") if password else m for m in mount_cmd],
+        )
 
         returncode, output = await check_output(mount_cmd)
         if returncode != 0: