Only iterate over cookie dir if exists in auth list

Fixes #18.
This commit is contained in:
rlaphoenix 2023-02-07 21:08:45 +00:00
parent 794de8b516
commit 0446c44a42
1 changed files with 6 additions and 5 deletions

View File

@ -39,6 +39,7 @@ def list_(ctx: click.Context, service: Optional[str] = None) -> None:
auth_data: dict[str, dict[str, list]] = defaultdict(lambda: defaultdict(list))
if config.directories.cookies.exists():
for cookie_dir in config.directories.cookies.iterdir():
service = cookie_dir.name
for cookie in cookie_dir.glob("*.txt"):