timekpr-client can't start: attribute lastNotified missing

Bug #761647 reported by levu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
timekpr
Triaged
Medium
Unassigned
Stable
Triaged
Medium
Unassigned

Bug Description

Package: timekpr
Versions:
0.3.2~ppa1~ubuntu2 (/var/lib/dpkg/status)

$ timekpr-client
Traceback (most recent call last):
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 279, in <module>
    tc = TimekprClient()
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 43, in __init__
    self.checkLimits()
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 148, in checkLimits
    self.notifier(_('Your time is up, you will be logged out in LESS than 2 minutes'))
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 246, in notifier
    if (datetime.datetime.now() - self.lastNotified).seconds < 5:
AttributeError: TimekprClient instance has no attribute 'lastNotified'

In init:

Line 43: self.checkLimits()
Line 49: self.lastNotified = datetime.datetime.now()

(Patch attached)

Revision history for this message
levu (levu) wrote :
Changed in timekpr:
status: New → Fix Committed
tags: added: needs-testing
Revision history for this message
levu (levu) wrote :

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"

Revision history for this message
Savvas Radevic (medigeek) wrote :

@Even: Could you import it?
@levu: Thank you for the patch! :)

Changed in timekpr:
status: Fix Committed → Triaged
importance: Undecided → Medium
Revision history for this message
levu (levu) wrote :

Don't be confused: in the patch, the file in /usr is the file fixed by me and the one without absolute patch is the original one ;)

papukaija (papukaija)
tags: added: patch
tags: added: lucid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.