Skip to content

Commit

Permalink
Fix bad error when ls directory does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyHaystack committed Nov 7, 2019
1 parent 2601661 commit 55b4bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions i3_resurrect/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def list_workspaces(directory, item):
List saved workspaces or profiles.
"""
if item == 'workspaces':
directory = Path(directory)
workspaces = []
for entry in directory.iterdir():
if entry.is_file():
Expand Down

0 comments on commit 55b4bc4

Please sign in to comment.