agent_cmds: fix when exception doesn't have e.args[0]

Not all exceptions set their `args` attribute