View Single Post
Posts: 8 | Thanked: 3 times | Joined on May 2006 @ Hungary
#115
Originally Posted by Arto View Post
I just posted version 0.6 to extras-devel so it is time to do more bug hunting
Dear Arto,

Thanks for developing this application !

Since its first release it was not working for me.

Today I figured out what was the problem in my configuration.

In the file espeakcaller-daemon.py there is the dirty function get_name_from_number.
At the 85 line there is a split which assumes that the contact card have both first and last name filled in.
If the FIrst name is missing than the line
Code:
tmpFName = tmpStr.split(";")[1]
gives list out of bounds exception.
A quick and dirty solution for this could be:
Code:
                if len(tmpStr.split(";"))>1:          
                        tmpFName = tmpStr.split(";")[1]
Maybe the situation could be the same with other fields also, but this fix is solved my problem.

A source is not in the garage so I am attaching a small patch against the 0.5 version.
Attached Files
File Type: gz espeakcaller-daemon-fix-pcsabi.patch.gz (261 Bytes, 131 views)
 

The Following 3 Users Say Thank You to pcsabi For This Useful Post: