Bug 1047743

Summary: [abrt] gtg: hamster.py:191:get_hamster_ids:AttributeError: 'NoneType' object has no attribute 'get_attribute'
Product: [Fedora] Fedora Reporter: libregeek <libregeek>
Component: gtgAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/df8c0a9157e58ce98cbfd77b10c61a23f4a8186f
Whiteboard: abrt_hash:06b82fb5c47726ae5a9743b1279a0aec8ca6d7ee
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-29 14:05:47 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 libregeek 2014-01-02 05:23:27 UTC
Description of problem:
Enabled Hamster plugin in GTG
Click on Plugins-->Start tasks in Hamster without selecting the task in GTG

GTG should show an error if no task is selected. Instead it crashed.


Version-Release number of selected component:
gtg-0.3.1-1.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/bin/gtg
executable:     /usr/bin/gtg
kernel:         3.12.5-302.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
hamster.py:191:get_hamster_ids:AttributeError: 'NoneType' object has no attribute 'get_attribute'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 340, in browser_cb
    self.decide_start_or_stop_activity(task, widget)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 347, in decide_start_or_stop_activity
    if self.is_task_active(task):
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 177, in is_task_active
    records = self.get_records(task)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 146, in get_records
    ids = self.get_hamster_ids(task)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 191, in get_hamster_ids
    a = task.get_attribute("id-list", namespace=self.PLUGIN_NAMESPACE)
AttributeError: 'NoneType' object has no attribute 'get_attribute'

Local variables in innermost frame:
self: <GTG.plugins.hamster.hamster.hamsterPlugin instance at 0x1e0ac20>
task: None

Comment 1 libregeek 2014-01-02 05:23:32 UTC
Created attachment 844361 [details]
File: backtrace

Comment 2 libregeek 2014-01-02 05:23:35 UTC
Created attachment 844362 [details]
File: environ

Comment 3 Fedora End Of Life 2015-05-29 10:17:20 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-06-29 14:05:47 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.