diff options
-rw-r--r-- | qutebrowser/components/misccommands.py | 2 | ||||
-rw-r--r-- | qutebrowser/utils/utils.py | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/qutebrowser/components/misccommands.py b/qutebrowser/components/misccommands.py index 70ea24ac4..53c057e26 100644 --- a/qutebrowser/components/misccommands.py +++ b/qutebrowser/components/misccommands.py @@ -294,7 +294,7 @@ def click_element(tab: apitypes.Tab, filter_: str, value: str = None, *, do_click(elems[0]) if value is None and filter_ != 'focused': - raise cmdutils.CommandError("Argument 'value' is only" + raise cmdutils.CommandError("Argument 'value' is only " "optional with filter 'focused'!") handlers = { diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py index b42a8474b..77543f161 100644 --- a/qutebrowser/utils/utils.py +++ b/qutebrowser/utils/utils.py @@ -849,8 +849,6 @@ def parse_point(s: str) -> QPoint: raise ValueError(f"String {s} does not match X,Y") try: - point = QPoint(x, y) + return QPoint(x, y) except OverflowError as e: raise ValueError(e) - - return point |