Skip to content

Commit

Permalink
xsel module: fix TypeError (#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
esuarezsantana authored Jan 21, 2025
1 parent a16e778 commit d78a60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py3status/modules/xsel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class Py3status:

def post_config_hook(self):
self.selection_cache = None
self.log_file = Path(self.log_file).expanduser()
if self.log_file:
self.log_file = Path(self.log_file).expanduser()

def xsel(self):
selection = self.py3.command_output(self.command).strip()
Expand Down

0 comments on commit d78a60d

Please sign in to comment.