[Rivet-svn] r3094 - trunk/pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue May 10 21:50:26 BST 2011


Author: buckley
Date: Tue May 10 21:50:26 2011
New Revision: 3094

Log:
Very minor tweaks to lighthisto formatting

Modified:
   trunk/pyext/lighthisto.py

Modified: trunk/pyext/lighthisto.py
==============================================================================
--- trunk/pyext/lighthisto.py	Tue May 10 14:25:20 2011	(r3093)
+++ trunk/pyext/lighthisto.py	Tue May 10 21:50:26 2011	(r3094)
@@ -3,7 +3,6 @@
 import posixpath
 import os, sys, re
 
-
 from htmlentitydefs import codepoint2name
 unichr2entity = {}
 for code, name in codepoint2name.iteritems():
@@ -551,11 +550,11 @@
                 except AttributeError:
                     self.plotpaths = rivet.getAnalysisRefPaths()
                 except AttributeError, e:
-                    logging.error("Failed to load Rivet analysis plot/reference paths: %s" % e)
-                    logging.error("Rivet version is too old.")
+                    sys.stderr.write("Failed to load Rivet analysis plot/reference paths: %s\n" % e)
+                    sys.stderr.write("Rivet version is too old.\n")
                     raise ValueError("No plot paths given and rivet module is too old.")
             except ImportError, e:
-                logging.error("Failed to import rivet module: %s" % e)
+                sys.stderr.write("Failed to import rivet module: %s\n" % e)
                 raise ValueError("No plot paths given and the rivet module could not be loaded!")
 
 


More information about the Rivet-svn mailing list