community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1828417 - /comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
Date Thu, 05 Apr 2018 11:06:48 GMT
Author: sebb
Date: Thu Apr  5 11:06:48 2018
New Revision: 1828417

URL: http://svn.apache.org/viewvc?rev=1828417&view=rev
Log:
Better error message

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parseprojects.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parseprojects.py?rev=1828417&r1=1828416&r2=1828417&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parseprojects.py Thu Apr  5 11:06:48 2018
@@ -251,7 +251,7 @@ for s in itemlist :
         if isinstance(err, OSError): # OSError is parent of HTTPError/URLError
             # Only mail 404 errors individually
             if isinstance(err, urllib.error.HTTPError) and err.code == 404:
-                printMail("Error when processing doap file %s:" % url, file=sys.stderr, body=err.filename)
+                printMail("Cannot find doap file %s:" % url, file=sys.stderr, body=err.filename)
             else:
                 print("Error when processing doap file %s:" % url, file=sys.stderr)
                 unreportedError = True



Mime
View raw message