Fix bug listing available formats when only a default program could be found.
This commit is contained in:
parent
8f5bc190f8
commit
f7e3fded29
|
@ -237,7 +237,7 @@ def list_formats ():
|
|||
print "(rar archives not supported)",
|
||||
print
|
||||
except util.PatoolError:
|
||||
handlers = programs.get(None, programs[command])
|
||||
handlers = programs.get(None, programs.get(command))
|
||||
print " %8s: - (no program found; install one of %s)" % \
|
||||
(command, ", ".join(handlers))
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue