Fix #2143888 [calibre-debug --shutdown-running-calibre returns error code](https://bugs.launchpad.net/calibre/+bug/2143888)

This commit is contained in:
Kovid Goyal 2026-03-11 16:19:47 +05:30
parent dc399ac961
commit d91b7645bd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -468,7 +468,8 @@ def send_message(msg):
time.sleep(0.05)
with SingleInstance(singleinstance_name) as si:
if si:
raise SystemExit(_('Other instance of calibre shutdown'))
print(_('Other instance of calibre shutdown'), file=sys.stderr)
raise SystemExit(0)
print(_('Failed to contact running instance of calibre'), file=sys.stderr, flush=True)
print(fail_err, file=sys.stderr, flush=True)