raise an CommandError with an argument string "couldn't extract file %s to %s: %s", where '%s' is replaced with filename, tempdir and e.
raise CommandError ( "couldn't extract file %s to %s: %s" % ( filename , tempdir , e ) )