client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5feb72eef8563482be7276818d9f6d769918bb0f
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Fri Mar 30 12:59:44 2012 +0200
804559 - correct string catenation
Traceback (most recent call last):
File "/usr/sbin/rhn-channel", line 162, in <module>
systemExit(1, e)
File "/usr/sbin/rhn-channel", line 46, in systemExit
sys.stderr.write(rhncli.utf8_encode(msg)+'\n')
<type 'exceptions.TypeError'>: unsupported operand type(s) for +:
'CommunicationError' and 'str'
diff --git a/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
b/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
index e0a0cc7..be06576 100644
--- a/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
+++ b/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
@@ -43,7 +43,7 @@ def systemExit(code, msgs=None):
if type(msgs) not in [type([]), type(())]:
msgs = (msgs, )
for msg in msgs:
- sys.stderr.write(rhncli.utf8_encode(msg)+'\n')
+ sys.stderr.write(rhncli.utf8_encode(msg.value) + "\n")
sys.exit(code)
# quick check to see if you are a super-user.
Show replies by date