# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1234671721 18000 # Node ID 4ea2d2599dd4c45d16dd6ace4c4b4b44a178204b # Parent 582c84365f6aa48f780b88280ade9b0fb86362eb trap plot errors better diff -r 582c84365f6a -r 4ea2d2599dd4 sqlpython/plothandler.py --- a/sqlpython/plothandler.py Tue Feb 03 17:24:28 2009 -0500 +++ b/sqlpython/plothandler.py Sat Feb 14 23:22:01 2009 -0500 @@ -86,4 +86,9 @@ except ImportError: class Plot(object): def __init__(self, *args, **kwargs): - raise ImportError, 'Must install python-matplotlib and pytyon-numpy to draw plots' \ No newline at end of file + raise ImportError, 'Must install python-matplotlib and pytyon-numpy to draw plots' + +except Exception, e: + class Plot(object): + def __init__(self, *args, **kwargs): + raise ImportError, 'There was a problem attempting to use plots:\n%s' % str(e)