Remove needless try/catch stuff

This commit is contained in:
Miguel Jacq 2025-11-21 09:56:33 +11:00
parent 3e91f158c3
commit 0923fb4395
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 8 additions and 21 deletions

View file

@ -99,8 +99,9 @@ class KeyPrompt(QDialog):
def db_path(self) -> Path | None:
"""Return the chosen DB path (or None if unchanged/not shown)."""
p = self._db_path
if self.path_edit is not None:
text = self.path_edit.text().strip()
if text:
return Path(text)
return self._db_path
p = Path(text)
return p