bodhi/tools/client.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 0bd0f5ada650863e13d7a07a85a614d867e01dca
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Sep 23 20:48:04 2008 -0400
Handle some bodhi client authentication issue a little better
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py
index 56c6b1d..986b910 100755
--- a/bodhi/tools/client.py
+++ b/bodhi/tools/client.py
@@ -195,6 +195,11 @@ def main():
data = bodhi.push()
if not data:
log.error("The masher did not return anything :(")
+ raise AuthError
+ if not data.get('updates', None):
+ log.info(data.get('message', 'Unknown masher
reply'))
+ raise AuthError
+ log.debug(data)
log.info("[ %d Pending Requests ]" %
len(data['updates']))
for status in ('testing', 'stable', 'obsolete'):
updates = filter(lambda x: x['request'] == status,
Show replies by date