diff --git a/.config/i3/pass_typer.py b/.config/i3/pass_typer.py index 65a18bd..acdee02 100755 --- a/.config/i3/pass_typer.py +++ b/.config/i3/pass_typer.py @@ -53,9 +53,10 @@ def select_and_type(server_name: Path) -> None: ) selected = rofi_select(file_list) - password = get_password(selected) + if selected: + password = get_password(selected) - subprocess.run(["xdotool", "type", password + "\n"]) + subprocess.run(["xdotool", "type", password + "\n"]) window_name = cmd(["xdotool", "getactivewindow", "getwindowname"]).stdout.strip()