On Fri, Jun 12, 2009 at 10:57 AM, Tom <[email protected]> wrote:

> On Fri, Jun 12, 2009 at 10:10 AM, <[email protected]> wrote:
>
>> On an bit older SHR-Testing (which works fine for me at the Moment) I
>> experience phonelog-chrashes now.
>>
>>
>> "phonelog Phonelog
>> Initialized global vars
>> Initializing gtk interface
>> Showing main window
>> Upright
>> Traceback (most recent call last):
>>  File "/usr/bin/phonelog", line 741, in <module>
>>   outgoing.populateList()
>>  File "/usr/bin/phonelog", line 191, in populateList
>>   print "There's a corruption in the DB, empty phone number!" + "(" +
>> call[4]  + ")"
>> TypeError: cannot concatenate 'str' and 'int' objects
>> "
>>
>> Known Problem? How can I fix it?
>>
>> _______________________________________________
>> Shr-User mailing list
>> [email protected]
>> http://lists.shr-project.org/mailman/listinfo/shr-user
>>
>> As you can see from the debug message, There's a corruption in the DB,
> there's an empty phone number :)
> change line 191 to
> print "There's a corruption in the DB, empty phone number!" + "(" +
> str(call[4])  + ")"
> (I will commit the fix myself) to fix the debug message, though is it seems
> it's a corrupted db,
> and is ophonekitd's fault. :)
>
> After you'll get the right ID of the record in the db, removing that field
> from the db will fix the issue.
> BTW, you can also rm /var/db/phonelog.db
> To fix this problem (you'll have to restart ophonekitd after you do that).
>
> Tom.
>

P.S
Best solution would be to change all of the call[4] to str(call[4]) in the
following lines, and re run pyphonelog to get good debug info and more
explanations on how to fix the issue.
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to