client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7fc29208a8b8e00f8333709a0e0f4dc63c8269d9
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Jul 13 10:09:20 2012 +0200
771749 - if the exception is <type 'instance'>, just plain if will
fail.
Addressing
Traceback (most recent call last):
File "/tmp/rhn-channel", line 121, in ?
systemExit(1, e)
File "/tmp/rhn-channel", line 25, in systemExit
if msgs:
TypeError: 'NoneType' object is not callable
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 80872d6..ea4e382 100644
--- a/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
+++ b/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
@@ -39,7 +39,7 @@ from up2date_client import up2dateAuth, config, up2dateErrors, rhncli
def systemExit(code, msgs=None):
"Exit with a code and optional message(s). Saved a few lines of code."
- if msgs:
+ if msgs is not None:
if type(msgs) not in [type([]), type(())]:
msgs = (msgs, )
for msg in msgs:
Show replies by thread