[elbe-devel] [PATCH 01/11] soap/wait_busy: don't drop exception silently

Manuel Traut manut at linutronix.de
Mon Jan 29 13:21:00 CET 2018


printout if dropping a log part

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/soapclient.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index 213840b3..3877cb0f 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -512,13 +512,10 @@ class WaitProjectBusyAction(ClientAction):
 
                         localtime = time.asctime(time.localtime(time.time()))
                         try:
-                            print(
-                                localtime +
-                                " -- " +
-                                log[1].replace(
-                                    '\n',
-                                    ''))
+                            print("%s -- %s" % (localtime,
+                                                log[1].replace('\n','')))
                         except IndexError:
+                            print("IndexError - part: %d (skipped)" % part)
                             pass
                     else:
                         time.sleep(1)
-- 
2.15.1




More information about the elbe-devel mailing list