We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5228919 commit 579a54bCopy full SHA for 579a54b
keepmenu/__main__.py
@@ -14,6 +14,7 @@
14
import socket
15
import string
16
from subprocess import call
17
+import sys
18
19
import keepmenu
20
from keepmenu.keepmenu import DmenuRunner
@@ -294,7 +295,8 @@ def main():
294
295
password = run_once(**args)
296
if password:
297
print(password)
- return
298
+ return
299
+ sys.exit(1)
300
try:
301
manager = client(port, auth)
302
conn = manager.get_pipe() # pylint: disable=no-member
@@ -328,6 +330,7 @@ def main():
328
330
if result:
329
331
if result.startswith("ERROR:"):
332
print(result[7:], file=sys.stderr) # Strip "ERROR: " prefix
333
334
else:
335
print(result)
336
except ConnectionRefusedError:
0 commit comments