Fix bug listing available formats when only a default program could be found.

This commit is contained in:
Bastian Kleineidam 2010-03-01 16:14:33 +01:00
parent 8f5bc190f8
commit f7e3fded29
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ def list_formats ():
print "(rar archives not supported)", print "(rar archives not supported)",
print print
except util.PatoolError: 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)" % \ print " %8s: - (no program found; install one of %s)" % \
(command, ", ".join(handlers)) (command, ", ".join(handlers))
return 0 return 0