Fix a bug in the gauge code

This commit is contained in:
cncfanatics
2010-08-28 22:10:07 +02:00
parent 36a457a4ce
commit a35f53c191

View File

@@ -184,8 +184,8 @@ class PyGauge(wx.PyWindow):
:param `range`: The maximum value of the gauge. :param `range`: The maximum value of the gauge.
""" """
if range <= 0: if range < 0:
raise Exception("ERROR:\n Gauge range must be greater than 0.") raise Exception("ERROR:\n Gauge range must be greater than 0. It was %.1f" % range)
self._range = range self._range = range