Bug 1308543

Summary: [abrt] hamster-time-tracker: __init__.py:52:__init__:AttributeError: 'NoneType' object has no attribute 'strip'
Product: [Fedora] Fedora Reporter: Matej <m>
Component: hamster-time-trackerAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: fschwarz, projects.rg, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/722dc7455b539b56a17c76cafc9a3661ceb87c39
Whiteboard: abrt_hash:64465c0fb1d01e156f45e68862a3da58b73e6a03;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-15 13:50:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Matej 2016-02-15 13:25:31 UTC
Version-Release number of selected component:
hamster-time-tracker-1.04-5.fc23

Additional info:
reporter:       libreport-2.6.4
cmdline:        python /usr/bin/hamster
executable:     /usr/bin/hamster
kernel:         4.3.5-300.fc23.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
__init__.py:52:__init__:AttributeError: 'NoneType' object has no attribute 'strip'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/hamster/today.py", line 451, in on_switch_activity_clicked
    tags = self.new_tags.get_text().decode("utf8", "replace"))
  File "/usr/lib/python2.7/site-packages/hamster/lib/__init__.py", line 52, in __init__
    input_parts = activity.strip().split(" ")
AttributeError: 'NoneType' object has no attribute 'strip'

Local variables in innermost frame:
category: ''
activity_id: None
description: ''
tags: u''
start_time: None
activity: None
self: <hamster.lib.Fact object at 0x7f2e227690d0>
end_time: None
delta: None
date: None
id: None

Potential duplicate: bug 1181438

Comment 1 Matej 2016-02-15 13:25:39 UTC
Created attachment 1127277 [details]
File: backtrace

Comment 2 Matej 2016-02-15 13:25:42 UTC
Created attachment 1127278 [details]
File: environ

Comment 3 Raphael Groner 2016-02-15 13:50:33 UTC
Hi Matej,

thanks for your report. Please try to reproduce with the new update version 2.0 rc1. You will get it by executing the following command:

 dnf update hamster-time-tracker

This bug is known since Fedora 20, at least ...

*** This bug has been marked as a duplicate of bug 1181438 ***