Revision: 7033
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7033&view=rev
Author:   jouni
Date:     2009-04-06 17:03:09 +0000 (Mon, 06 Apr 2009)

Log Message:
-----------
texmanager.make_dvi now raises an error if LaTeX failed to create an output file

Modified Paths:
--------------
    branches/v0_98_5_maint/CHANGELOG
    branches/v0_98_5_maint/lib/matplotlib/texmanager.py

Modified: branches/v0_98_5_maint/CHANGELOG
===================================================================
--- branches/v0_98_5_maint/CHANGELOG    2009-04-06 01:52:45 UTC (rev 7032)
+++ branches/v0_98_5_maint/CHANGELOG    2009-04-06 17:03:09 UTC (rev 7033)
@@ -1,3 +1,7 @@
+2009-04-06 texmanager.make_dvi now raises an error if LaTeX failed to
+           create an output file. Thanks to Joao Luis Silva for reporting
+           this. - JKS
+
 2009-04-05 _png.read_png() reads 12 bit PNGs (patch from 
            Tobias Wood) - ADS
 

Modified: branches/v0_98_5_maint/lib/matplotlib/texmanager.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/texmanager.py 2009-04-06 01:52:45 UTC 
(rev 7032)
+++ branches/v0_98_5_maint/lib/matplotlib/texmanager.py 2009-04-06 17:03:09 UTC 
(rev 7033)
@@ -285,7 +285,12 @@
                 fh.close()
             except IOError:
                 report = 'No latex error report available.'
-            if exit_status:
+            try:
+                os.stat(dvifile)
+                exists = True
+            except OSError:
+                exists = False
+            if exit_status or not exists:
                 raise RuntimeError(('LaTeX was not able to process the 
following \
 string:\n%s\nHere is the full report generated by LaTeX: \n\n'% repr(tex)) + 
report)
             else: mpl.verbose.report(report, 'debug')


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to