Bundled KDE Connect: tidying up can't leave the pad stuck starting

discard() swallows OSError as well as Failure, so a launch that fails and
can't remove its copy still reports the error and can be started again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-28 21:56:00 +10:00
1 parent e4421d966a
commit 98a5ec45bb
2 files changed
+18 -2

No files matched your search

+2 -2
View File
@@ -659,8 +659,8 @@ class InputAgent:
if folder.startswith(f"{KDECONNECT_HOME}/incoming/") and not LOCAL:
try:
ssh(f"rm -rf {folder}", timeout=20)
except Failure:
pass
except (Failure, OSError):
pass # never let tidying up get in the way of reporting and retrying
def start(self):
with self.lock: