[elbe-devel] [PATCH v2 01/24] soap/wait_busy: don't drop exception silently
Manuel Traut
manut at linutronix.de
Thu Feb 8 14:16:47 CET 2018
printout if dropping a log part. Instead of hiding the issue. I've seen
some strange behaviour once, but wasn't able to reproduce it. Hopefully
this improves debugablility.
Also cleanup the unreadable line-breaks in the print introduced by autopep8.
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