From: <mme...@us...> - 2009-01-08 19:55:13
|
Revision: 6768 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6768&view=rev Author: mmetz_bn Date: 2009-01-08 19:55:06 +0000 (Thu, 08 Jan 2009) Log Message: ----------- Handle ValueError is val is a string Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/collections.py Modified: trunk/matplotlib/lib/matplotlib/collections.py =================================================================== --- trunk/matplotlib/lib/matplotlib/collections.py 2009-01-08 19:44:07 UTC (rev 6767) +++ trunk/matplotlib/lib/matplotlib/collections.py 2009-01-08 19:55:06 UTC (rev 6768) @@ -111,6 +111,7 @@ if cbook.iterable(val) and len(val): try: float(val[0]) except TypeError: pass # raise below + except ValueError: pass else: return val raise TypeError('val must be a float or nonzero sequence of floats') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |