prevent traceback when kwalletcli is not available. see #5153
This commit is contained in:
parent
cfc0c2fe5c
commit
cc154c2bf2
|
@ -26,7 +26,10 @@ import subprocess
|
||||||
|
|
||||||
def kwallet_available():
|
def kwallet_available():
|
||||||
"""Return True if kwalletcli can be run, False otherwise."""
|
"""Return True if kwalletcli can be run, False otherwise."""
|
||||||
p = subprocess.Popen(["kwalletcli", "-qV"])
|
try:
|
||||||
|
p = subprocess.Popen(["kwalletcli", "-qV"])
|
||||||
|
except Exception:
|
||||||
|
return False
|
||||||
p.communicate()
|
p.communicate()
|
||||||
if p.returncode == 0:
|
if p.returncode == 0:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue