Skip to content

Commit

Permalink
remove extra path reference
Browse files Browse the repository at this point in the history
  • Loading branch information
diivi committed Feb 23, 2023
1 parent 1504f9d commit fe6fb5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vorta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import unicodedata
from datetime import datetime as dt
from functools import reduce
from pathlib import Path
from typing import Any, Callable, Iterable, List, Optional, Tuple, TypeVar
import psutil
from PyQt5 import QtCore
Expand Down Expand Up @@ -200,8 +199,7 @@ def get_private_keys() -> List[str]:
if key.endswith('.pub') or key.startswith('known_hosts') or key == 'config':
continue
try:
filepath = Path.home() / '.ssh' / key
if is_ssh_file(filepath):
if is_ssh_file(key_file):
available_private_keys.append(key)
except (PermissionError,):
logger.debug(f'Expected error parsing file in .ssh: {key} (You can safely ignore this)', exc_info=True)
Expand Down

0 comments on commit fe6fb5e

Please sign in to comment.