Author: sebb
Date: Fri Jan 24 17:33:24 2025
New Revision: 1923353
URL: http://svn.apache.org/viewvc?rev=1923353&view=rev
Log:
Not much point producing stack trace here. Error exit instead.
Modified:
comdev/reporter.apache.org/trunk/scripts/readjira.py
Modified: comdev/reporter.apache.org/trunk/scripts/readjira.py
URL:
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/readjira.py?rev=1923353&r1=1923352&r2=1923353&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/readjira.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/readjira.py Fri Jan 24 17:33:24
2025
@@ -15,7 +15,7 @@
"""
import errtee # this is used, even though it is not referenced
-import os, json, base64, time
+import os, json, base64, time, sys
try:
from urllib.request import urlopen, Request
from urllib.error import HTTPError
@@ -52,7 +52,7 @@ def handleError():
global jiraerrors
jiraerrors += 1
if jiraerrors > 5:
- raise Exception("Too many errors - quitting")
+ sys.exit(f"Too many errors - {jiraerrors} - quitting. See
/var/log/www-data/readjira.log for details.")
def getProjects():
"""Update the list of projects in data/JIRA/jira_projects.json"""