We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da81e7 commit 46c3eeeCopy full SHA for 46c3eee
src/vorta/keyring/kwallet.py
@@ -20,7 +20,7 @@ def __init__(self):
20
self.object_path,
21
self.interface_name,
22
QtDBus.QDBusConnection.sessionBus())
23
- if not (self.iface.isValid() and self.get_result("isEnabled")):
+ if not (self.iface.isValid() and self.get_result("isEnabled") is True):
24
raise KWalletNotAvailableException
25
26
def set_password(self, service, repo_url, password):
@@ -49,7 +49,10 @@ def try_unlock(self):
49
wId = QVariant(0)
50
wId.convert(4)
51
output = self.get_result("open", args=[wallet_name, wId, 'vorta-repo'])
52
- self.handle = int(output)
+ try:
53
+ self.handle = int(output)
54
+ except ValueError: # For when kwallet is disabled or dbus otherwise broken
55
+ return -2
56
57
58
class KWalletNotAvailableException(Exception):
0 commit comments