mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
A bad listen_on value should not prevent startup
Ideally we should report the error more verbosely, maybe someday when I have more time.
This commit is contained in:
@@ -364,7 +364,12 @@ class Boss:
|
||||
self.allow_remote_control = 'n'
|
||||
self.listening_on = ''
|
||||
if args.listen_on and self.allow_remote_control in ('y', 'socket', 'socket-only', 'password'):
|
||||
listen_fd, self.listening_on = listen_on(args.listen_on)
|
||||
try:
|
||||
listen_fd, self.listening_on = listen_on(args.listen_on)
|
||||
except Exception:
|
||||
log_error(f'Invalid listen_on setting: {args.listen_on}, ignoring')
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
self.child_monitor = ChildMonitor(
|
||||
self.on_child_death,
|
||||
DumpCommands(args) if args.dump_commands or args.dump_bytes else None,
|
||||
|
||||
Reference in New Issue
Block a user