~callum/barszcz

fdac34af9824695716e974e4700872f166e7a189 — Callum Brown 2 years ago e5b4bec
Fix focus with non-int argument

Fixes: https://todo.sr.ht/~callum/barszcz/25
1 files changed, 2 insertions(+), 2 deletions(-)

M beetsplug/barszcz.py
M beetsplug/barszcz.py => beetsplug/barszcz.py +2 -2
@@ 473,11 473,11 @@ class Barszcz:

        elif split[0] == "focus":
            if len(split) != 2:
                return "'focus' requires an argument"
                return "ERROR: 'focus' requires one argument"
            try:
                index = int(split[1])
            except ValueError:
                return f"{index} is not an integer"
                return f"ERROR: {split[1]} is not an integer"
            return self.focus(index)

        elif split[0] in ("list", "ls"):