The problem code is this
try:
kind, keytext, comment = sshkey.split(' ', 2)
except ValueError:
raise SSHKeyAdditionError
if not (kind and keytext and comment):
raise SSHKeyAdditionError
The error could be explicit and state what parts are missing that are required.
The problem code is this
try:
kind, keytext, comment = sshkey.split(' ', 2)
except ValueError:
raise SSHKeyAdditionError
if not (kind and keytext and comment):
raise SSHKeyAdditionError
The error could be explicit and state what parts are missing that are required.