diff --git a/qutebrowser/commands.py b/qutebrowser/commands.py index a6cb7c6ab..8dad2cf50 100644 --- a/qutebrowser/commands.py +++ b/qutebrowser/commands.py @@ -47,7 +47,7 @@ class Command(QObject): (self.nargs == '+' and len(argv) < 1)): raise TypeError("Invalid argument count!") - def run(self, argv): + def run(self, argv=None): if not self.signal: raise NotImplementedError self.signal.emit() diff --git a/qutebrowser/keys.py b/qutebrowser/keys.py index 783233d8d..061cf5260 100644 --- a/qutebrowser/keys.py +++ b/qutebrowser/keys.py @@ -21,4 +21,4 @@ class KeyParser(QObject): if cmd.nargs and cmd.nargs != 0: self.set_cmd_text.emit(':{} '.format(cmd.name)) else: - cmd.run([]) + cmd.run()