Opened 8 years ago

Closed 8 years ago

#1004 closed defect (fixed)

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:

Description

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
Phonelog
Initialized global vars
Initializing gtk interface
Showing main window
Upright
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
    missed.populateList()
  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 (2)

comment:1 Changed 8 years ago by ssam

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

comment:2 Changed 8 years ago by TAsn

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

Already there, thanks.

Note: See TracTickets for help on using tickets.