pygooglechart
pygooglechart copied to clipboard
Incorrect argument in raise
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.