Ticket #1004 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Phonelog crashes since opim/pim.db upgrade

Reported by: sp Owned by: TAsn
Priority: major Milestone:
Component: pyphonelog Version: SHR-testing
Keywords: phonelog, opim, pim.db Cc:


The Phonelog application crashes since I upgraded yesterday (20100311). I think it is related to the change in the opim/pim.db. The error message I get is this:

root@om-gta02 /etc/freesmartphone/opim $ python /usr/bin/phonelog
Initialized global vars
Initializing gtk interface
Showing main window
Started caching contacts
Failed to initialize contacts
Started populating list
Started getting missed
Finished getting missed
Traceback (most recent call last):
  File "/usr/bin/phonelog", line 779, in <module>
    populateListByPageNum(incoming, outgoing, missed, general, startup_page)
  File "/usr/bin/phonelog", line 676, in populateListByPageNum
  File "/usr/bin/phonelog", line 236, in populateList
    tmp_duration = ceil(call['Duration'])
TypeError: a float is required

This fix worked for me: change line 236 in /usr/bin/phonelog to:

tmp_duration = ceil(float(call['Duration']))

Change History

comment:1 Changed 5 years ago by ssam

i can confirm the bug, and that the above change fixes it.

comment:2 Changed 5 years ago by TAsn

  • Status changed from new to closed
  • Resolution set to fixed

Already there, thanks.

Note: See TracTickets for help on using tickets.