community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1704813 - /comdev/projects.apache.org/scripts/import/parseprojects.py
Date Wed, 23 Sep 2015 10:54:38 GMT
Author: sebb
Date: Wed Sep 23 10:54:37 2015
New Revision: 1704813

URL: http://svn.apache.org/viewvc?rev=1704813&view=rev
Log:
Ensure that error details are all written to sdterr

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

Modified: comdev/projects.apache.org/scripts/import/parseprojects.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parseprojects.py?rev=1704813&r1=1704812&r2=1704813&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/import/parseprojects.py Wed Sep 23 10:54:37 2015
@@ -209,10 +209,10 @@ for s in itemlist :
         else:
             print("WARN: project ignored since unable to extract project json filename from
%s" % url)
     except Exception as err:
-        print("Error when reading doap file %s:" % url)
-        print("-"*60)
+        print("Error when reading doap file %s:" % url, file=sys.stderr)
+        print("-"*60, file=sys.stderr)
         traceback.print_exc()
-        print("-"*60)
+        print("-"*60, file=sys.stderr)
         failures.append(url)
         if rdf is not None:
             with open (url.split('/')[-1], "wb") as f:



Mime
View raw message