Fix error with args.

This commit is contained in:
Darko Poljak 2016-03-11 19:23:59 +01:00
parent b4ac23b4f8
commit 8ed0c672b1
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class Local(object):
except subprocess.CalledProcessError:
raise cdist.Error("Command failed: " + " ".join(command))
except OSError as error:
raise cdist.Error(" ".join(*args) + ": " + error.args[1])
raise cdist.Error(" ".join((str(x) for x in error.args)))
finally:
if message_prefix:
message.merge_messages()