--- /usr/share/inkscape/extensions/funcplot.py~ 2009-10-15 02:59:36.000000000 +0100 +++ /usr/share/inkscape/extensions/funcplot.py 2010-02-03 22:06:54.937821247 +0000 @@ -70,10 +70,14 @@ ytop = (bottom+height-yzero)/scaley # functions specified by the user - if fx != "": - f = eval('lambda x: ' + fx.strip('"')) - if fpx != "": - fp = eval('lambda x: ' + fpx.strip('"')) + try: + if fx != "": + f = eval('lambda x: ' + fx.strip('"')) + if fpx != "": + fp = eval('lambda x: ' + fpx.strip('"')) + # handle incomplete/invalid function gracefully + except SyntaxError: + return [] # step is the distance between nodes on x step = (xend - xstart) / (samples-1)