cmds.projects.CmdGetAuthInfo: Fix: echo credentials "None" #122
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@ class CmdGetAuthInfo(Cmd): # export
|
|||
]: # TODO: Use other remotes, too?
|
||||
parsed = Uri(url)
|
||||
for key in keys:
|
||||
result[key] = getattr(parsed, key)
|
||||
val = getattr(parsed, key)
|
||||
if val is not None:
|
||||
result[key] = val
|
||||
base = parsed.to_string
|
||||
base = re.sub(r'/jw-pkg', '', base)
|
||||
base = re.sub(r'/proj$', '', base)
|
||||
|
|
|
|||
Loading…
Reference in a new issue