connect command: skip application records
@@ -239,6 +239,7 @@ class ConnectSshCommand(BaseConnectCommand):
if folder_uid in params.subfolder_record_cache:
for uid in params.subfolder_record_cache[folder_uid]:
r = KeeperRecord.load(params, uid)
+ if r:
if r.title.lower() == record_name.lower():
record = r
break
@@ -522,6 +523,7 @@ class ConnectCommand(BaseConnectCommand):
if folder_uid in params.subfolder_record_cache:
for uid in params.subfolder_record_cache[folder_uid]:
r = KeeperRecord.load(params, uid)
+ if r:
if r.title.lower() == title.lower():
record_uid = uid
break
@@ -532,6 +534,7 @@ class ConnectCommand(BaseConnectCommand):
if len(endpoints) > 0:
if len(endpoints) == 1:
record = KeeperRecord.load(params, endpoints[0].record_uid)
+ if record:
self.connect_endpoint(params, endpoints[0].name, record)
else:
logging.warning("Connect endpoint '%s' is not unique", endpoint)
@@ -578,6 +581,8 @@ class ConnectCommand(BaseConnectCommand):
ConnectCommand.Endpoints.clear()
for record_uid in params.record_cache:
record = KeeperRecord.load(params, record_uid)
+ if not record:
+ continue
endpoints = []
endpoints_desc = {}
if isinstance(record, PasswordRecord):
