Bug 1029961

Summary: [abrt] gtg-0.3-4.fc20: export.py:270:_update_combobox:KeyError: 'last_template'
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: gtgAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA 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/0a2f2f2244e8f9951e006751a181cdc8d1e20330
Whiteboard: abrt_hash:e85cb10882a2f00655e40004df8e95ea41af6726
Fixed In Version: gtg-0.3.1-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-14 03:50:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Tim Waugh 2013-11-13 15:42:33 UTC
Description of problem:
Happens when exporting tasks.

Version-Release number of selected component:
gtg-0.3-4.fc20

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python /usr/bin/gtg
executable:     /usr/bin/gtg
kernel:         3.11.7-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1001

Truncated backtrace:
export.py:270:_update_combobox:KeyError: 'last_template'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/GTG/plugins/export/export.py", line 253, in show_dialog
    self._update_combobox()
  File "/usr/lib/python2.7/site-packages/GTG/plugins/export/export.py", line 270, in _update_combobox
    if path == self.preferences["last_template"]:
KeyError: 'last_template'

Local variables in innermost frame:
templates: ['/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_statusrpt.txt', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_textual.txt', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_simple.html', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_pocketmod.tex', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_sexy.html']
i: 0
self: <GTG.plugins.export.export.PluginExport instance at 0x2890488>
active_entry: None
template: <GTG.plugins.export.templates.Template instance at 0x2db6440>
path: '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_statusrpt.txt'
model: <gtk.ListStore object at 0x2dd8eb0 (GtkListStore at 0x20e7ec0)>

Comment 1 Tim Waugh 2013-11-13 15:42:44 UTC
Created attachment 823492 [details]
File: backtrace

Comment 2 Tim Waugh 2013-11-13 15:42:49 UTC
Created attachment 823493 [details]
File: environ

Comment 3 Tim Waugh 2013-11-13 15:47:29 UTC
FWIW, changing that line to this works around the problem here:

    if path == self.preferences.get("last_template"):

Comment 4 Fedora Update System 2013-11-27 08:44:02 UTC
gtg-0.3.1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/gtg-0.3.1-1.fc20

Comment 5 Fedora Update System 2013-11-27 16:08:57 UTC
Package gtg-0.3.1-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gtg-0.3.1-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22265/gtg-0.3.1-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-12-14 03:50:16 UTC
gtg-0.3.1-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.