From b252504306976f5a47a4dd89b28f5562e7a3e2d3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Mar 2018 11:31:37 +0530 Subject: [PATCH] ... --- kitty/remote_control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty/remote_control.py b/kitty/remote_control.py index ea7b31f2d..b50a42fed 100644 --- a/kitty/remote_control.py +++ b/kitty/remote_control.py @@ -85,7 +85,10 @@ def ls(boss, window): argspec='FONT_SIZE' ) def cmd_set_font_size(global_opts, opts, args): - return {'size': float(args[0])} + try: + return {'size': float(args[0])} + except IndexError: + raise SystemExit('No font size specified') def set_font_size(boss, window, payload):