esc-reporting/esc-collect.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit b42476a81fe06d56e33c715e2895b24004b6f1f3 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Sep 27 17:04:52 2021 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Sep 27 17:04:52 2021 +0200 esc-collect: Do not exit if exception is thrown, just raise it will be caught in runBuild Change-Id: I8f296d50f21b52ab2e25ea10d19924991d03734d diff --git a/esc-reporting/esc-collect.py b/esc-reporting/esc-collect.py index 9b39ca3..dc8ce50 100755 --- a/esc-reporting/esc-collect.py +++ b/esc-reporting/esc-collect.py @@ -78,8 +78,7 @@ def util_load_url(url, useDict=False, useRaw=False, useSkipJSON=False, uUser=Non rawData = r.json() r.close() except Exception as e: - print('Error load url ' + url + ' due to ' + str(e)) - exit(-1) + raise return rawData @@ -90,9 +89,8 @@ def util_dump_file(fileName, rawList): json.dump(rawList, fp, ensure_ascii=False, indent=4, sort_keys=True) fp.close() except Exception as e: - print('Error dump file ' + fileName + ' due to ' + str(e)) os.remove(fileName) - exit(-1) + raise