101
101
- util.logexc(log, "Failed generating key type %s to "
102
102
- "file %s", keytype, keyfile)
103
103
+ out, err = util.subp(cmd, capture=True, env=lang_c)
105
105
+ except util.ProcessExecutionError as e:
107
107
+ if (e.exit_code == 1 and
108
108
+ err.lower().startswith("unknown key")):
109
109
+ log.debug("ssh-keygen: unknown key type '%s'", keytype)