ytrstu / liten

Automatically exported from code.google.com/p/liten
0 stars 0 forks source link

Too many exceptions in debug mode #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set LITEN_DEBUG=1
2. liten.py testData

What is the expected output? What do you see instead?
LITEN DEBUG MODE ENABLED: Print Mode                                      
                                          08:47
Problem evaluating: 1MB <type 'exceptions.Exception'> invalid literal for
int() with base 10: '1MB'
Problem evaluating: 1MB <type 'exceptions.Exception'> invalid literal for
int() with base 10: '1MB'
Problem evaluating: 1MB <type 'exceptions.Exception'> invalid literal for
int() with base 10: '1MB'
Problem evaluating: 1MB <type 'exceptions.Exception'> invalid literal for
int() with base 10: '1MB'
Key: MB Filesize: 1MB
Value: 1048576
self.sizeType() 1048576

What version of the product are you using? On what operating system?
1.4.3 (SVN)

Please provide any additional information below.
Attached patch fixes the issue so that exception is only thrown when input
is indeed invalid.

Original issue reported on code.google.com by techtonik@gmail.com on 19 Dec 2008 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r94

Original comment by techtonik@gmail.com on 25 Dec 2008 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by techtonik@gmail.com on 30 Dec 2008 at 12:57