# HG changeset patch # User catherine@dellzilla # Date 1222717269 14400 # Node ID 8329ab7a3a49b02b17051286cdf50c00f685af09 # Parent 7a581c412cf1925771c8f4c7b2f484cc977d271e catch uninstalled matplotlib better diff -r 7a581c412cf1 -r 8329ab7a3a49 sqlpython/plothandler.py --- a/sqlpython/plothandler.py Mon Sep 29 15:35:51 2008 -0400 +++ b/sqlpython/plothandler.py Mon Sep 29 15:41:09 2008 -0400 @@ -75,11 +75,5 @@ except ImportError: class Plot(object): - def build(self, sqlSession): - pass - def save(self): - pass - def shelve(self): - pass - def draw(self): - return 'Must install python-matplotlib to plot query results.' \ No newline at end of file + def __init__(self, *args, **kwargs): + raise ImportError, 'Must install python-matplotlib to draw plots' \ No newline at end of file