Exception.__init__(self, msg % (abs(status), command_msg))
self.status = status
self.command = command
- self.stderr = stderr
+ self.stderr = ''.join(stderr)
def get_tags(fn):
tags = Tags()
'--remove-all-tags', '--import-tags-from', tmp.name, fn]
p = subprocess.Popen(command, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
- stdout, stderr = p.communicate()
status = p.wait()
if status != 0:
- raise SubprocessError(status, command=command, stderr=stdout)
+ raise SubprocessError(status, command=command, stderr=p.stdout)
def do_read(filenames):
# Use this mapping of tag names to sets of tag values to detect global tags.