cjprecord / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

Calculator conversion error #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Error received via error reporter.

*** Sun Mar  1 12:52:06 2009 ***
Traceback (most recent call last):  File
"/home/terekhov/.Editra/plugins/Calculator-0.5-py2.5.egg/calculator/calc.py",
line 310, in OnRadioBox    self._disp.SetMode(mode)  File
"/home/terekhov/.Editra/plugins/Calculator-0.5-py2.5.egg/calculator/calc.py",
line 524, in SetMode    tmp = self.GetValAsInt()  File
"/home/terekhov/.Editra/plugins/Calculator-0.5-py2.5.egg/calculator/calc.py",
line 472, in GetValAsInt    fval = int(tmp[0])ValueError: invalid literal
for int() with base 10:

Original issue reported on code.google.com by CodyPrec...@gmail.com on 1 Mar 2009 at 6:01

GoogleCodeExporter commented 9 years ago
Fixed

check for decimals starting with 0 before calling int().

Original comment by CodyPrec...@gmail.com on 1 May 2009 at 12:24