From: <jo...@us...> - 2007-09-28 15:50:29
|
Revision: 3899 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3899&view=rev Author: jouni Date: 2007-09-28 08:50:01 -0700 (Fri, 28 Sep 2007) Log Message: ----------- Catch UnboundLocalError in checkdep_pdftops; it is raised if no output line of pdftops -v contains the word "version". Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/__init__.py Modified: trunk/matplotlib/lib/matplotlib/__init__.py =================================================================== --- trunk/matplotlib/lib/matplotlib/__init__.py 2007-09-28 12:41:08 UTC (rev 3898) +++ trunk/matplotlib/lib/matplotlib/__init__.py 2007-09-28 15:50:01 UTC (rev 3899) @@ -270,7 +270,7 @@ v = line.split()[-1] float(v) return v - except (IndexError, ValueError): + except (IndexError, ValueError, UnboundLocalError): return None def compare_versions(a, b): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |