[Libreoffice-commits] dev-tools.git: esc-reporting/esc-collect.py

Xisco Fauli xiscofauli at libreoffice.org
Wed Apr 11 09:59:53 UTC 2018


 esc-reporting/esc-collect.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 3c15b8afd1fa5c76af03824283550dda305a1fc7
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date:   Wed Apr 11 11:57:26 2018 +0200

    ESC: Fix problem when the user name starts with a number

diff --git a/esc-reporting/esc-collect.py b/esc-reporting/esc-collect.py
index 6f55588..2216bf8 100755
--- a/esc-reporting/esc-collect.py
+++ b/esc-reporting/esc-collect.py
@@ -239,7 +239,10 @@ def do_ESC_QA_STATS_UPDATE():
           stopCellIndex = tmp.find('<', startIndex)
           x = tmp[startIndex:stopCellIndex].replace('\n', '')
           if '0' <= x[0] <= '9' or x[0] == '+' or x[0] == '-':
-            x = int(x)
+            try:
+              x = int(x)
+            except ValueError:
+              pass
           tmpList.append(x)
         if len(tmpList):
           if curTopIndex == 0:


More information about the Libreoffice-commits mailing list