tags 224107 + patch pending thanks * Anthony DeRobertis <[EMAIL PROTECTED]> [2003-12-15 20:08]: > When running more than one jack at once (to use multiple cdroms), jacks > seems to abort in (I think) the ogg status parse. ... > At first, it died a few times with errors about float getting an empty
The following patch makes ogg parsing more robust: diff -urN jack-3.1.1~/jack_helpers.py jack-3.1.1/jack_helpers.py --- jack-3.1.1~/jack_helpers.py 2005-07-28 22:10:23.232361704 +0100 +++ jack-3.1.1/jack_helpers.py 2005-07-28 22:14:27.332252880 +0100 @@ -59,7 +59,10 @@ y0 = string.find(s, "[") y1 = string.find(s, "%]") if y0 != -1 and y1 != -1: - percent = float(s[y0 + 1:y1]) + try: + percent = float(s[y0 + 1:y1]) + except ValueError: + percent = 0 else: percent = 0 """, -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]