FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit a641bbc8 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@536 29193198-4895-4776-b068-10539e920549
parent ac567a4f
No related branches found
No related tags found
No related merge requests found
--- gradint.py 2010-02-09 11:55:22.000000000 +0000
+++ ../gradint.py 2010-02-09 11:55:10.000000000 +0000
@@ -2016,7 +2016,7 @@
bitrate = br_tab[ord(head[i+2])>>4][column]
if bitrate==0: bitrate=48 # reasonable guess for speech
return filelen(fname)*8.0/(bitrate*1000)
- except IndexError: raise Exception("Invalid MP3 header in file "+fname)
+ except IndexError: raise Exception("Invalid MP3 header in file "+repr(fname))
def filelen(fname):
try: fileLen=os.stat(fname).st_size
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment