How to fix this python error? OverflowError: cannot convert float infinity to integer
<p>it gives me this error:</p>

<pre><code>Traceback (most recent call last):
  File "C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Plugins\NoisePlugin.py", line 113, in onPaint
    dc.DrawLine(valueWI, valueHI, valueWF, valueHF)
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 3177, in DrawLine
    return _gdi_.DC_DrawLine(*args, **kwargs)
OverflowError: cannot convert float infinity to integer
</code></pre>

<p>How can I avoid this to happen?</p>

<p>Thanks in advance ;)</p>
