From f7e3fded29407969154c96c42085a8e25dfc78aa Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 1 Mar 2010 16:14:33 +0100 Subject: [PATCH] Fix bug listing available formats when only a default program could be found. --- patoolib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patoolib/__init__.py b/patoolib/__init__.py index c384c02..6acd893 100644 --- a/patoolib/__init__.py +++ b/patoolib/__init__.py @@ -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