pygooglechart icon indicating copy to clipboard operation
pygooglechart copied to clipboard

Incorrect argument in raise

Open gak opened this issue 13 years ago • 0 comments

By Daniel Romaniuk on https://groups.google.com/d/topic/pygooglechart/SHVd8jKkSUI/discussion

I noticed what appear to be two small errors in the script. In the following two functions:

def set_axis_positions(self, axis_index, positions): .................. raise InvalidParametersException('Axis index %i has not been '
'created' % axis)

def set_axis_style(self, axis_index, colour, font_size=None,
alignment=None): ................... raise InvalidParametersException('Axis index %i has not been '
'created' % axis)

I think you mean % axis_index) instead of % axis) as axis is not defined at that point in the program.

gak avatar May 16 '11 07:05 gak